This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: GCJ manual changed
- From: Per Bothner <per at bothner dot com>
- To: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Cc: Nic Ferrier <nferrier at tapsellferrier dot co dot uk>, java-patches at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Wed, 30 Jan 2002 08:48:00 -0800
- Subject: Re: GCJ manual changed
- References: <Pine.LNX.4.33.0201301518540.13997-100000@kern.srcf.societies.cam.ac.uk>
Joseph S. Myers wrote:
>>>You say "UTF", which UTF (there are several, e.g., UTF-8, UTF-16,
>>>UTF-32)?
>>>
>>It should be obvious to a Java programmer. This is the same text as
>>the old CNI manual.
>>
>
> You're using a term from another field. When doing so, you should do it
> in a way that is correct in the context of that other field rather than
> making an incorrect usage that will be understood by those Java
> programmers who aren't also too experienced in Unicode for the incorrect
> usage to grate on them. Elsewhere you've explicitly named UTF-8.
Java does not use UTF-8, but something similar. The differences are
that '\u0' is encoded using two bytes, and that code points about 2^16
are encoding by individually encoding each surrogate pairs. (Java
does not handle code points above 2^16 well in any case.)
--
--Per Bothner
per@bothner.com http://www.bothner.com/per/