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;

Reply via email to