This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: java/2319: invalid UTF-8 sequences should be rejected


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]