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: <tromey at redhat dot com>
- Subject: Re: java/2319: invalid UTF-8 sequences should be rejected
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Date: Mon, 19 Mar 2001 17:00:47 +0000 (GMT)
- cc: <gcc-gnats at gcc dot gnu dot org>, <gcc-bugs at gcc dot gnu dot org>
On 19 Mar 2001 tromey@redhat.com wrote:
> Currently the compiler accepts invalid UTF-8 sequences
> when reading a file. Instead we ought to diagnose
> such sequences as errors.
Also note that the invalid sequences that should be rejected include
over-long sequences and UTF-8 encodings that would map to values in the
UTF-16 surrogate range.
http://www.cl.cam.ac.uk/~mgk25/unicode.html
http://www.unicode.org/unicode/uni2errata/UTF-8_Corrigendum.html
--
Joseph S. Myers
jsm28@cam.ac.uk