components/stdcxx/patches/043-22.locale.numpunct.cpp.patch
author Rich Burridge <rich.burridge@oracle.com>
Wed, 07 Jan 2015 21:26:16 -0800
changeset 3598 5fdeba1e317c
parent 402 94ae4d75524c
permissions -rw-r--r--
20300673 problem in LIBRARY/LIBSNDFILE

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