-
Bug
-
Resolution: Fixed
-
P2
-
1.1.1
-
b01
-
x86
-
solaris_9
-
Not verified
4039925
takeshi.asano@Japan 1997-03-19
Currently JIS converters seem to behave with JIS X 0201 (aka Hanakku)
Kana as below:
ByteToCharJIS
accepts ESC-$-I
accepts SI/SO style switching
CharToByteJIS
use ESC-$-I
Here, ESC-$-I seems to be inappropriate. Those converters should use
ESC-(-I instead of ESC-$-I. i.e. I think right behaviors are:
ByteToCharJIS
accepts ESC-(-I
accepts SI/SO style switching
CharToByteJIS
use ESC-(-I
I don't have ISO 2375 so I don't know how the ESC-$-I is defined.
However, neither SunOS iconv nor Netscape Navigator can recognize
ESC-$-I.
Attached files "InOut.java", "kana.euc", and "kana.paren_i"
for reproduction.
(i) ByteToCharJIS doesn't accept ESC-(-I
asano@soda[651]$ java InOut JIS EUCJIS < kana.paren_i
::::::::::::::::
LC_CTYPE:ja CS:2
::::::::::::::::
8ea0 * I/O Error(null) in reading character #59
Last1 character: \u20
Last2 character: \u20
(ii) CharToByteJIS doesn't use ESC-(-I
asano@soda[653]$ java InOut EUCJIS JIS < kana.euc | od -c
0000000 : : : : : : : : : : : : : : : :
0000020 \n L C _ C T Y P E : j a C S :
0000040 2 \n : : : : : : : : : : : : : :
0000060 : : \n 8 e a 0 * 033 $ I ! 033
0000100 ( B 033 ( B 033 $ I " 033 ( B 033 ( B
0000120 033 $ I # 033 ( B 033 ( B 033 $ I $
0000140 033 ( B 033 ( B 033 $ I % 033 ( B 033 (
... deleted ...
takeshi.asano@Japan 1997-03-19
Currently JIS converters seem to behave with JIS X 0201 (aka Hanakku)
Kana as below:
ByteToCharJIS
accepts ESC-$-I
accepts SI/SO style switching
CharToByteJIS
use ESC-$-I
Here, ESC-$-I seems to be inappropriate. Those converters should use
ESC-(-I instead of ESC-$-I. i.e. I think right behaviors are:
ByteToCharJIS
accepts ESC-(-I
accepts SI/SO style switching
CharToByteJIS
use ESC-(-I
I don't have ISO 2375 so I don't know how the ESC-$-I is defined.
However, neither SunOS iconv nor Netscape Navigator can recognize
ESC-$-I.
Attached files "InOut.java", "kana.euc", and "kana.paren_i"
for reproduction.
(i) ByteToCharJIS doesn't accept ESC-(-I
asano@soda[651]$ java InOut JIS EUCJIS < kana.paren_i
::::::::::::::::
LC_CTYPE:ja CS:2
::::::::::::::::
8ea0 * I/O Error(null) in reading character #59
Last1 character: \u20
Last2 character: \u20
(ii) CharToByteJIS doesn't use ESC-(-I
asano@soda[653]$ java InOut EUCJIS JIS < kana.euc | od -c
0000000 : : : : : : : : : : : : : : : :
0000020 \n L C _ C T Y P E : j a C S :
0000040 2 \n : : : : : : : : : : : : : :
0000060 : : \n 8 e a 0 * 033 $ I ! 033
0000100 ( B 033 ( B 033 $ I " 033 ( B 033 ( B
0000120 033 $ I # 033 ( B 033 ( B 033 $ I $
0000140 033 ( B 033 ( B 033 $ I % 033 ( B 033 (
... deleted ...