This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

[Ada] fix handling of brackets encoding


Tested on i686-linux, committed on trunk.

This patch ensures that brackets encoding for wide characters is
always allowed in source programs even if some alternative wide
character encoding method is specified (e.g. by using -gnatW8 to
specify UTF-8).

This bug is particularly noticeable wrt Ada.Numerics, the one place
in the library to have a wide character (the dratted pi symbol as an
alternative for pi).

See gnat.dg/wide_pi.adb

2006-10-31  Robert Dewar  <dewar@adacore.com>

	* widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
	add more precise check for the character sequence that follows '[' to
	avoid possible confusion in case if '[' is the last character of a
	string literals.
	(Scan_Wide): Always allow brackets encoding

Attachment: difs
Description: Text document


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