in reply to Re^4: Parsing UTF-16LE CSV Records Using Text::CSV*
in thread Parsing UTF-16LE CSV Records Using Text::CSV*
pack was badly broken in 5.10 (and silently changes existing behavior, which should almost never be done). The 5.10 documentation for "pack" says the "c" and "C" are "eight bit" and "octet" but they no longer (always) are. So the documentation is wrong (but the documented behavior is preferrable, especially since it has always worked that way). unpack "H*", pack "U", 0x1234 results under 5.10 are mostly nonsensical, not "fixed".
Pretending that the encoding of the string should never make a difference is just fooling yourself and leads to confusing magical behaviors that sometimes "do what you mean" but burn you when they don't.
- tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Parsing UTF-16LE CSV Records Using Text::CSV* (5.10)
by ikegami (Patriarch) on Jul 20, 2009 at 19:06 UTC | |
by tye (Sage) on Jul 20, 2009 at 19:16 UTC | |
by ikegami (Patriarch) on Jul 20, 2009 at 19:34 UTC | |
by tye (Sage) on Jul 20, 2009 at 20:09 UTC | |
by ikegami (Patriarch) on Jul 20, 2009 at 20:34 UTC |