Commit 54e1f2f0 by Robert Dewar Committed by Arnaud Charlet

stringt.adb (Write_String_Table_Entry): Handle wide characters properly

2008-04-08  Robert Dewar  <dewar@adacore.com>

	* stringt.adb (Write_String_Table_Entry): Handle wide characters
	properly

From-SVN: r134053
parent 9147cc0b
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
-- -- -- --
-- B o d y -- -- B o d y --
-- -- -- --
-- Copyright (C) 1992-2007, Free Software Foundation, Inc. -- -- Copyright (C) 1992-2008, Free Software Foundation, Inc. --
-- -- -- --
-- GNAT is free software; you can redistribute it and/or modify it under -- -- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- -- -- terms of the GNU General Public License as published by the Free Soft- --
...@@ -428,9 +428,8 @@ package body Stringt is ...@@ -428,9 +428,8 @@ package body Stringt is
for J in 1 .. String_Length (Id) loop for J in 1 .. String_Length (Id) loop
C := Get_String_Char (Id, J); C := Get_String_Char (Id, J);
if Character'Val (C) = '"' then if C = Character'Pos ('"') then
Write_Str (""""""); Write_Str ("""""");
else else
Write_Char_Code (C); Write_Char_Code (C);
end if; end if;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment