dualfroz 9bc91ef163 fix: parse integer fields as base 10
toInt and toUint passed base 0 to strconv, which infers the base from the
literal the way the Go compiler does. A zero-padded CSV field was then
read as octal: 08 and 09 failed with invalid syntax and 010 silently
parsed as 8.

Pass base 10 at both call sites. Go-style prefixed literals such as 0x1f
are no longer accepted; they were undocumented and untested, and cannot
be kept without keeping the octal reading of 010 as well.

Closes #182
2026-09-04 22:08:59 +02:00
2026-09-04 22:08:59 +02:00
S
Description
My contributions to gocarina/gocsv: 5 commits, 4 merged PRs
92 KiB
0 Stars 1 Watchers 0 Forks
Languages
Go 100%