LanguageTool: don't crash if REST protocol isn't set
[LibreOffice.git] / external / boost / windows-no-utf8-locales.patch.0
blob66038cad70fb4999afe4951e7b7610a00f35f6e9
1 Don't ever attempt to initialise a std::locale with a UTF-8 locale on Windows -*- Mode: Diff -*-
3 --- libs/locale/src/std/std_backend.cpp
4 +++ libs/locale/src/std/std_backend.cpp
5 @@ -109,12 +109,13 @@
6                  #endif
7              }
8              else {
9 +                #if !defined(BOOST_WINDOWS)
10                  if(loadable(lid)) {
11                      name_ = lid;
12                      utf_mode_ = utf8_native_with_wide;
13                  }
14 -                #if defined(BOOST_WINDOWS)
15 -                else if(loadable(win_name)) {
16 +                #else
17 +                if(loadable(win_name)) {
18                      name_ = win_name;
19                      utf_mode_ = utf8_from_wide;
20                  }