incubator-stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Black <abl...@roguewave.com>
Subject [patch] resolve segv in locale/localedef
Date Tue, 15 Aug 2006 21:02:36 GMT
Greetings all.

Below is a 2 line patch to the locale and localedef utilities that 
resolves a segfault encountered during automated testing (and adds a 
missing newline).  This problem generally shows up during stage 2 of the 
run_locale_utils.sh script.

--Andrew Black

Log:
	* scanner.cpp (Scanner::convert_escape): Correct order of arguments to 
an issue_diag call, add missing newline.

Index: scanner.cpp
===================================================================
--- scanner.cpp (revision 431602)
+++ scanner.cpp (working copy)
@@ -734,8 +734,8 @@

      if (val < 0 || val > long (UCHAR_MAX))
          issue_diag (E_INVAL, true, 0,
-                    "%s value in the range [0, %lu) expected: %s",
-                    basename, esc, long (UCHAR_MAX));
+                    "%s value in the range [0, %lu) expected: %s\n",
+                    basename, long (UCHAR_MAX), esc);

      typedef unsigned char UChar;


Mime
View raw message