Commit Graph
10 Commits
Author SHA1 Message Date
dualfroz f87ec7522c Make SetHeaderNormalizer safe to call while decoding
SetHeaderNormalizer reassigned the normalizer and copied a fresh sync.Map
over the struct info cache while other goroutines were using it. Keep both
in one value swapped atomically instead. Fixes #237.
2026-10-02 16:20:31 +02:00
upstream 391e8f0876 Upstream gocarina/gocsv state of the touched files before ddaa038afb 2026-10-02 16:20:31 +02:00
dualfroz 5f7829feee Fix date layout in README and full example 2026-10-02 15:53:20 +02:00
upstream a5ece792f8 Upstream gocarina/gocsv state of the touched files before c31659ffab 2026-10-02 15:53:20 +02:00
dualfroz 90a1c52508 Add MarshalBytesWithoutHeaders 2026-10-02 15:52:52 +02:00
upstream 4d32abefad Upstream gocarina/gocsv state of the touched files before 8fabd92666 2026-10-02 15:52:52 +02:00
dualfroz 26aafe16a8 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 07:41:12 +02:00
upstream 0ba11f2f3b Upstream gocarina/gocsv state of the touched files before 7c8185d25e 2026-09-04 07:41:12 +02:00
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
upstream d083650302 Upstream gocarina/gocsv state of the touched files before ed8a0671ef 2026-09-04 07:41:12 +02:00