From: Adam Fedor <[EMAIL PROTECTED]>
To: Yen-Ju Chen <[EMAIL PROTECTED]>
CC: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
Subject: Re: Bug of cvtenc (Re: ANN: GNUstep base/make Version 1.7.4)
Date: 20 Sep 2003 20:43:24 -0600



With my patch I get a file in the local encoding. Did you apply my patch
and recompile cvtenc?


Yes, and it failed to convert file from NSData to NSString
becuase the NSData is local encoding, and iEnc is NSUnicodeStringEncoding.
Your patch let it always assume the input file (NSData) is NSUnicodeStringEncoding
"if ((l > 1 && (*b == 0xFFFE || *b == 0xFEFF)) || eIn == yes)"


Even it can convert file from NSData to NSString by doing some work around,
it still failed to write the output to correct encoding.
It may not be easy for you to test because all western europe use the same encoding (ISO8859-1).
(Correct me if I'm wrong).
Did you try my suggestion to use iEnc instaed oEnc in the line 234-238.
It works for me, and if it works for you, it should be the correct patch.
But I wonder why your patch works for you because you should get a NSUnicodeStringEncoding output.


Yen-Ju

_________________________________________________________________
Share your photos without swamping your Inbox. Get Hotmail Extra Storage today! http://join.msn.com/?PAGE=features/es




_______________________________________________
Bug-gnustep mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to