in reply to Simplest Possible Way To Disable Unicode
I agree. I also want use bytes; to disable those dumb warnings when I use chr and pack 'C*' on numbers greater than 255.
If I do pack 'C*', 257;, I am explicitly stating that I am packing 8-bit byte date, not f****** "wide characters", and if the numeric value is greater than 8-bits, it should be silently truncated.
If I want to pack wide characters, I can use the U template. I don't need or want those two data types conflated.
More to the point, I think unicode should be explicitly enabled by those that need it, not have to be disabled by those that don't.
IF it were possible for unicode to be used transparently, then it might make some sense to enable it by default, but since it cannot, it doesn't.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Simplest Possible Way To Disable Unicode
by ikegami (Patriarch) on May 24, 2011 at 05:09 UTC | |
by BrowserUk (Patriarch) on May 24, 2011 at 05:59 UTC | |
by ikegami (Patriarch) on May 24, 2011 at 06:20 UTC | |
by BrowserUk (Patriarch) on May 24, 2011 at 07:18 UTC | |
by tchrist (Pilgrim) on May 24, 2011 at 18:59 UTC | |
| |
by ikegami (Patriarch) on May 24, 2011 at 07:49 UTC | |
| |
Re^2: Simplest Possible Way To Disable Unicode
by Anonymous Monk on May 24, 2011 at 04:48 UTC | |
Re^2: Simplest Possible Way To Disable Unicode
by tchrist (Pilgrim) on May 24, 2011 at 20:15 UTC | |
by BrowserUk (Patriarch) on May 25, 2011 at 06:15 UTC |