Encoding iso-8859-16

2005-08-03 Thread Sastry
Hi I am running the following script on EBCDIC use Encode; $string = "a"; $enc_string = encode("iso-8859-16", $string); print "\n String: $string\n"; print "\n enc_string: $enc_string\n"; The output: String: a enc_string: ñ (This is the character for codepoint \xF1 on iso-8859-16) What is th

Re: Encoding iso-8859-16

2005-08-08 Thread Nicholas Clark
On Thu, Aug 04, 2005 at 11:51:44AM +0530, Sastry wrote: > Hi > > I am running the following script on EBCDIC > > use Encode; > $string = "a"; > $enc_string = encode("iso-8859-16", $string); > print "\n String: $string\n"; > print "\n enc_string: $enc_string\n"; > > > The output: > > String: a

Re: Encoding iso-8859-16

2005-08-08 Thread Sastry
Hi I get 73 printed on EBCDIC platform. I think it is supposed to print 129 as it is the numeric equivalent of 'a'. -Sastry On 8/8/05, Nicholas Clark <[EMAIL PROTECTED]> wrote: > On Thu, Aug 04, 2005 at 11:51:44AM +0530, Sastry wrote: > > Hi > > > > I am running the following script on EBCDI

Re: Encoding iso-8859-16

2005-08-09 Thread Sastry
Hi Nicholas Clark I agree that it is supposed to print the numerical equivalent 97. I attempted to see if there is any bug in the encode module. Surprisingly, I noticed that there are two .c files in ext/Encode/def_t.c and ext/Encode/Byte/byte_t.c which are generated using enc2xs. They are diff

Re: Encoding iso-8859-16

2005-08-09 Thread Nicholas Clark
On Tue, Aug 09, 2005 at 10:58:48AM +0530, Sastry wrote: > Hi > > I get 73 printed on EBCDIC platform. I think it is supposed to print > 129 as it is the numeric equivalent of 'a'. > > -Sastry > > > > On 8/8/05, Nicholas Clark <[EMAIL PROTECTED]> wrote: > > On your EBCDIC platform, what does

Re: Encoding iso-8859-16

2005-08-10 Thread Sastry
On 8/9/05, Nicholas Clark <[EMAIL PROTECTED]> wrote: > On Tue, Aug 09, 2005 at 10:58:48AM +0530, Sastry wrote: > > Hi > > > > I get 73 printed on EBCDIC platform. I think it is supposed to print > > 129 as it is the numeric equivalent of 'a'. > > > > -Sastry > > > > > > > > On 8/8/05, Nicholas Cla

Re: Encoding iso-8859-16

2005-08-10 Thread Nicholas Clark
On Wed, Aug 10, 2005 at 02:11:45PM +0530, Sastry wrote: > On 8/9/05, Nicholas Clark <[EMAIL PROTECTED]> wrote: > > On Tue, Aug 09, 2005 at 10:58:48AM +0530, Sastry wrote: > > > > $enc_string = encode("iso-8859-16", $string); > > So $enc_string should be a single byte, 97, everywhere. > Can you su

Re: Encoding iso-8859-16

2005-08-19 Thread Sastry
Hi Nicholas With reference to my previous mail on encoding module use Encode; $string = "a"; $enc_string = encode("iso-8859-16", $string); print "\n String: $string\n"; print "\n enc_string: $enc_string\n"; a)How different are those ext/Encode/def_t.c and ext/Encode/Byte/byte_t.c files in EBCDI

Re: Encoding iso-8859-16

2005-08-19 Thread Sastry
Hi The test case uses the invariant character that is below <127 on ISO-8859-16 codepage. Since character 'a' has a codepoint of 129 on EBCDIC, is there a place in the code where it should apply NATIVE_TO_ASCII macro on the input character? -Sastry On 8/19/05, Nicholas Clark <[EMAIL PROTECTE

Re: Encoding iso-8859-16

2005-08-19 Thread Nicholas Clark
On Fri, Aug 19, 2005 at 05:01:04PM +0530, Sastry wrote: > Hi Nicholas > > With reference to my previous mail on encoding module > > use Encode; > $string = "a"; > $enc_string = encode("iso-8859-16", $string); > print "\n String: $string\n"; > print "\n enc_string: $enc_string\n"; > > a)How diffe

Re: Encoding iso-8859-16

2005-08-19 Thread Nicholas Clark
On Fri, Aug 19, 2005 at 05:51:10PM +0530, Sastry wrote: > Hi > > The test case uses the invariant character that is below <127 on > ISO-8859-16 codepage. Since character 'a' has a codepoint of 129 on > EBCDIC, is there a place in the code where it should apply > NATIVE_TO_ASCII macro on the inp

Require info on encoding iso-8859-16 on EBCDIC platform

2005-07-13 Thread Sastry
Hi I am getting strange result when I run this Perl Script on EBCDIC platform. The $enc_string contains >ñ=Á When I run the same on linux, I get the same string as "ravi". can someone enlighten me as how the encode method is supposed to work on? use Encode; $string = "ravi"; enc_string = encode(