2018-05-25 Arnaud Charlet <charlet@adacore.com>
gcc/ada/
* pprint.adb (Expression_Name): Do not print non ASCII characters.
From-SVN: r260720
+2018-05-25 Arnaud Charlet <charlet@adacore.com>
+
+ * pprint.adb (Expression_Name): Do not print non ASCII characters.
+
2018-05-25 Bob Duff <duff@adacore.com>
* libgnat/a-strunb__shared.ads, libgnat/a-stwiun__shared.ads,
when N_Character_Literal =>
declare
- Char : constant Int :=
- UI_To_Int (Char_Literal_Value (Expr));
+ Char : constant Int := UI_To_Int (Char_Literal_Value (Expr));
begin
if Char in 32 .. 127 then
return "'" & Character'Val (Char) & "'";
if Right /= Expr then
while Scn < End_Sloc loop
case Src (Scn) is
+
+ -- Give up on non ASCII characters
+
+ when Character'Val (128) .. Character'Last =>
+ Append_Paren := 0;
+ Index := 0;
+ Right := Expr;
+ exit;
+
when ' '
| ASCII.HT
=>