[kaffe] ByteToCharEUCJP/CharToByteEUCJP

Ito Kazumitsu kaz at maczuka.gcd.org
Thu Dec 11 07:42:02 PST 2003


>>>>> ":" == Atsushi Nemoto <anemo at mba.ocn.ne.jp> writes:

:> I found CharToByteSHIFT_JIS use CharToByteIconv but CharToByteEUCJP
:> does not.  Is there any reason?  Extending CharToByteIconv is better
:> than table-based implementation, isn't it?


CharToByteEUC_JP exists because it had existed before CharToByteIconv
was born.

CharToByteIconv may be better than CharToByteEUC_JP but the
benefit of CharToByteEUC_JP is that it can be used without
libiconv.

If you prefer to use CharToByteIconv,  use the encoding name
"EUC-JP" instead of "EUC_JP".

:> OTOH CharToByteEUCJP have a typo (203E vs. 20E3).
:> 
:> 		    // 0x7E -> U+203E OVERLINE
:> ...
:> 	    if (!US_ASCII && (chr == 0x20E3)) {
:> 
:> Please fix this (203E is correct) if CharToByteEUCJP will not be
:> reimplemented.

I think I will.




More information about the kaffe mailing list