utf8::upgrade,utf8::encode and utf8::is_utf8 on EBCDIC platform

2005-09-01 Thread mohammad yaseen
Hi, This are the tetstcase i'm runing on EBCDIC platform, my $b = chr(0x0FF); $p=utf8::upgrade($b); print \n$p; utf8::upgarde returns the number of octets necessary to represent the string as UTF-X. EBCDIC output is 1 whereas ASCII platform output is 2. Is the return value i'm getting on

Re: utf8::upgrade,utf8::encode and utf8::is_utf8 on EBCDIC platform

2005-09-01 Thread SADAHIRO Tomoyuki
Hello. I think it is correct. On EBCDIC platforms, perl uses UTF-EBCDIC instead of UTF-8, nevertheless perl calls it utf8. In general chr(0xFF) (equals to \xFF) in EBCDIC encodings corresponds to U+009F, that is a single-octet control character; thus a single octet sequence \xFF is well-form in