About the encoding of libgcj?

Tom Tromey tromey@redhat.com
Wed Aug 2 22:40:00 GMT 2006


>>>>> ">" == bbskill  <bbkills@tom.com> writes:

Replying to some old email... got lost on my laptop, sorry about that.

>> As we know,  the libbcj library is only for the utf-8 compatible
>> locale . That is to say , it assume all the machine is using utf-8
>> compatible locale. I am wonderring why libgcj doesn't  support other
>> locale, such GB2312, probably using the iconv to convert between
>> them.

Just history.

>> So , What I want to say is why libgcj does not provoide a method to
>> implement the convertions between utf-8 and other encoding on the layer
>> between libgcj and OS , probably outside the jvm?

We simply never implemented it.  There's a PR:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9463

Note that in the common case of UTF-8 we probably want to use
something similar to the existing code, as it is likely to be more
efficient.

Tom



More information about the Java mailing list