This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: java/2319: invalid UTF-8 sequences should be rejected
- To: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Subject: Re: java/2319: invalid UTF-8 sequences should be rejected
- From: Tom Tromey <tromey at redhat dot com>
- Date: 19 Mar 2001 10:19:18 -0700
- Cc: <gcc-gnats at gcc dot gnu dot org>, <gcc-bugs at gcc dot gnu dot org>
- References: <Pine.LNX.4.32.0103191656280.10287-100000@kern.srcf.societies.cam.ac.uk>
- Reply-To: tromey at redhat dot com
>>>>> "Joseph" == Joseph S Myers <jsm28@cam.ac.uk> writes:
Joseph> Also note that the invalid sequences that should be rejected
Joseph> include over-long sequences and UTF-8 encodings that would map
Joseph> to values in the UTF-16 surrogate range.
I agree, with the sole exception that I think we should accept the
Java form of \0. Java represents this as a two-byte sequence and it
seems reasonable that a Java compiler would accept this form.
Tom