summaryrefslogtreecommitdiff
path: root/gcc/ada
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2008-04-08 06:55:57 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2008-04-08 06:55:57 +0000
commit168bbd64fe3797212c0608278d13bc22ddce4736 (patch)
treec27ab8dd6028d50a5ec341ba4d53ebff79e5f4ae /gcc/ada
parent4687bfe2dbaa654631eb29a1de5cbd5b76f79c26 (diff)
downloadgcc-168bbd64fe3797212c0608278d13bc22ddce4736.tar.gz
2008-04-08 Robert Dewar <dewar@adacore.com>
* stringt.adb (Write_String_Table_Entry): Handle wide characters properly git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@134053 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada')
-rw-r--r--gcc/ada/stringt.adb5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/ada/stringt.adb b/gcc/ada/stringt.adb
index 88b72e056dd..6d69d1dcf02 100644
--- a/gcc/ada/stringt.adb
+++ b/gcc/ada/stringt.adb
@@ -6,7 +6,7 @@
-- --
-- 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 --
-- terms of the GNU General Public License as published by the Free Soft- --
@@ -428,9 +428,8 @@ package body Stringt is
for J in 1 .. String_Length (Id) loop
C := Get_String_Char (Id, J);
- if Character'Val (C) = '"' then
+ if C = Character'Pos ('"') then
Write_Str ("""""");
-
else
Write_Char_Code (C);
end if;