summaryrefslogtreecommitdiff
path: root/external/boost/windows-no-utf8-locales.patch.0
blob: ec0313294375d9e3fd920bda3a76474e29add6e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Don't ever attempt to initialise a std::locale with a UTF-8 locale on Windows -*- Mode: Diff -*-

--- libs/locale/src/boost/locale/std/std_backend.cpp
+++ libs/locale/src/boost/locale/std/std_backend.cpp
@@ -138,10 +138,14 @@
                 } else
                     name_ = "C";
             } else {
+#if !defined(BOOST_WINDOWS)
                 if(loadable(lid)) {
                     name_ = lid;
                     utf_mode_ = utf8_support::native;
                 } else {
+#else
+                {
+#endif
                     std::vector<std::string> alt_names;
                     if(l_win)
                         alt_names.push_back(l_win.name);