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

--- libs/locale/src/std/std_backend.cpp
+++ libs/locale/src/std/std_backend.cpp
@@ -109,12 +109,13 @@
                 #endif
             }
             else {
+                #if !defined(BOOST_WINDOWS)
                 if(loadable(lid)) {
                     name_ = lid;
                     utf_mode_ = utf8_native_with_wide;
                 }
-                #if defined(BOOST_WINDOWS)
-                else if(loadable(win_name)) {
+                #else
+                if(loadable(win_name)) {
                     name_ = win_name;
                     utf_mode_ = utf8_from_wide;
                 }