components/stdcxx/patches/043-22.locale.numpunct.cpp.patch
author John Beck <John.Beck@Oracle.COM>
Thu, 15 Aug 2013 13:38:30 -0700
changeset 1442 dfa14f95f572
parent 402 94ae4d75524c
permissions -rw-r--r--
17312751 procmail license needs to match ARN 17264868 procmail lists dependency on obsolete shell/ksh package

--- stdcxx-4.2.1/tests/localization/22.locale.numpunct.cpp	2008-04-24 17:23:10.000000000 -0700
+++ stdcxx-4.2.1/tests/localization/22.locale.numpunct.cpp	2009-07-27 14:41:33.627970295 -0700
@@ -137,7 +137,7 @@
     // verify that numpunct behaves correctly when LC_ALL is set
     // to the name of the (non-C, non-POSIX) locale
     char envvar [80];
-    std::sprintf (envvar, "LC_ALL=%s", first_non_c);
+    std::sprintf (envvar, "LC_ALL=%s", first_non_c ? first_non_c : "");
     rw_putenv (envvar);
     check_numpunct (charT (), tname, "", loc);
 }