-
Bug
-
Resolution: Fixed
-
P4
-
1.4.0_01
-
hopper
-
generic
-
solaris_8
-
Verified
###@###.### 2002-01-30
When I tried to use native2ascii -reverse on Solaris9 build55,
it doesn't work when specifing -reverse -encoding 8859_1.
It outputs the strings with \u00xx (looks like none of conversion is done).
I confirmed it works fine on s8 UR7 (build 1.3.1_01).
Also it seems fine when converting to UTF-8 not to 8859_1.
sayama@oxanne[14]% uname -a
SunOS oxanne 5.9 s81_55 sun4u sparc SUNW,Ultra-60
sayama@oxanne[15]% od -xC sample_fr.txt
0000000 64e9 706f 73e9 6573 0a00
d 351 p o s 351 e s \n
0000011
sayama@oxanne[16]% /usr/j2se/bin/native2ascii -encoding 8859_1 sample_fr.txt
d\u00e9pos\u00e9es
sayama@oxanne[17]% /usr/j2se/bin/native2ascii -encoding 8859_1 sample_fr.txt | /usr/j2se/bin/native2ascii -reverse -encoding 8859_1
d\u00e9pos\u00e9es
sayama@oxanne[18]% /usr/j2se/bin/native2ascii -encoding 8859_1 sample_fr.txt | /usr/j2se/bin/native2ascii -reverse -encoding UTF-8
déposées
sayama@oxanne[20]% /usr/j2se/bin/native2ascii -encoding 8859_1 sample_fr.txt | /usr/j2se/bin/native2ascii -reverse -encoding ISO-8859-1
d\u00e9pos\u00e9es
sayama@oxanne[21]% /usr/j2se/bin/native2ascii -encoding 8859_1 sample_fr.txt | /usr/j2se/bin/native2ascii -reverse -encoding ISO8859_1
d\u00e9pos\u00e9es
sayama@oxanne[23]% /usr/j2se/bin/java -version
java version "1.4.0-rc"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-rc-b89)
Java HotSpot(TM) Client VM (build 1.4.0-rc-b89, mixed mode)
When I tried to use native2ascii -reverse on Solaris9 build55,
it doesn't work when specifing -reverse -encoding 8859_1.
It outputs the strings with \u00xx (looks like none of conversion is done).
I confirmed it works fine on s8 UR7 (build 1.3.1_01).
Also it seems fine when converting to UTF-8 not to 8859_1.
sayama@oxanne[14]% uname -a
SunOS oxanne 5.9 s81_55 sun4u sparc SUNW,Ultra-60
sayama@oxanne[15]% od -xC sample_fr.txt
0000000 64e9 706f 73e9 6573 0a00
d 351 p o s 351 e s \n
0000011
sayama@oxanne[16]% /usr/j2se/bin/native2ascii -encoding 8859_1 sample_fr.txt
d\u00e9pos\u00e9es
sayama@oxanne[17]% /usr/j2se/bin/native2ascii -encoding 8859_1 sample_fr.txt | /usr/j2se/bin/native2ascii -reverse -encoding 8859_1
d\u00e9pos\u00e9es
sayama@oxanne[18]% /usr/j2se/bin/native2ascii -encoding 8859_1 sample_fr.txt | /usr/j2se/bin/native2ascii -reverse -encoding UTF-8
déposées
sayama@oxanne[20]% /usr/j2se/bin/native2ascii -encoding 8859_1 sample_fr.txt | /usr/j2se/bin/native2ascii -reverse -encoding ISO-8859-1
d\u00e9pos\u00e9es
sayama@oxanne[21]% /usr/j2se/bin/native2ascii -encoding 8859_1 sample_fr.txt | /usr/j2se/bin/native2ascii -reverse -encoding ISO8859_1
d\u00e9pos\u00e9es
sayama@oxanne[23]% /usr/j2se/bin/java -version
java version "1.4.0-rc"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-rc-b89)
Java HotSpot(TM) Client VM (build 1.4.0-rc-b89, mixed mode)