At 11:09 PM 3/23/2001 +0000, Simon Cozens wrote:
>For instance, chr() will produce Unicode codepoints. But you can pretend that
>they're ASCII codepoints, it's only the EBCDIC folk that'll get hurt. I hope
>and suspect there'll be an equivalent of "use bytes" which makes chr(256)
>either blow up or wrap around.
Actually no it won't. If the string you're doing a chr on is tagged as
EBCDIC, you'll get the EBCDIC value. Yes, it does mean that this:
chr($foo) == chr($bar);
could evaluate to false if one of the strings is EBCDIC and the other
isn't. Odd but I don't see a good reason not to. Otherwise we'd want to
force everything to Unicode, and then what do we do if one of the strings
is plain binary data?
Dan
--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
[EMAIL PROTECTED] have teddy bears and even
teddy bears get drunk