bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug of cvtenc (Re: ANN: GNUstep base/make Version 1.7.4)


From: Yen-Ju Chen
Subject: Re: Bug of cvtenc (Re: ANN: GNUstep base/make Version 1.7.4)
Date: Sun, 21 Sep 2003 08:40:06 -0400




From: Adam Fedor <fedor@doc.com>
To: Yen-Ju Chen <yjchenx@hotmail.com>
CC: "bug-gnustep@gnu.org" <bug-gnustep@gnu.org>
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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]