components/stdcxx/patches/043-22.locale.numpunct.cpp.patch
author Mike Sullivan <Mike.Sullivan@Oracle.COM>
Thu, 16 Jun 2016 20:28:32 -0700
changeset 6235 309c116f1e44
parent 402 94ae4d75524c
permissions -rw-r--r--
Close of build 102.

--- 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);
 }