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 09:46:07 -0800
- Subject: Re: GCJ manual changed
- References: <Pine.LNX.4.33.0201301730120.31756-100000@kern.srcf.societies.cam.ac.uk>
Joseph S. Myers wrote:
> Is there a proper name for this, e.g. UTF-JAVA? (DUTR#26 defines CESU-8
> which encodes surrogate pairs like you describe but doesn't seem to have a
> special encoding of '\u0'.)
>
> Where these docs refer to UTF-8, do they mean UTF-8, or this variant?
The VM specification does talk about "UTF-8 strings". Also:
There are two differences between this format and the "standard" UTF-8
format. First, the null byte (byte)0 is encoded using the 2-byte
format rather than the 1-byte format, so that Java virtual machine
UTF-8 strings never have embedded nulls. Second, only the 1-byte,
2-byte, and 3-byte formats are used. The Java virtual machine does not
recognize the longer UTF-8 formats.
--
--Per Bothner
per@bothner.com http://www.bothner.com/per/