[libcxx] r181534 - Initialize codecvt explicitly with the C locale, which might not be 0.

Joerg Sonnenberger joerg at bec.de
Thu May 9 12:00:18 PDT 2013


Author: joerg
Date: Thu May  9 14:00:18 2013
New Revision: 181534

URL: http://llvm.org/viewvc/llvm-project?rev=181534&view=rev
Log:
Initialize codecvt explicitly with the C locale, which might not be 0.

Modified:
    libcxx/trunk/src/locale.cpp

Modified: libcxx/trunk/src/locale.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/src/locale.cpp?rev=181534&r1=181533&r2=181534&view=diff
==============================================================================
--- libcxx/trunk/src/locale.cpp (original)
+++ libcxx/trunk/src/locale.cpp Thu May  9 14:00:18 2013
@@ -1376,7 +1376,7 @@ locale::id codecvt<wchar_t, char, mbstat
 
 codecvt<wchar_t, char, mbstate_t>::codecvt(size_t refs)
     : locale::facet(refs),
-      __l(0)
+      __l(_LIBCPP_GET_C_LOCALE)
 {
 }
 





More information about the cfe-commits mailing list