Bump version to 24.04.3.4
[LibreOffice.git] / external / boost / windows-no-utf8-locales.patch.0
blob519d8bde2fe6a7f93f1a2c772254b2e25e27d77b
1 Don't ever attempt to initialise a std::locale with a UTF-8 locale on Windows -*- Mode: Diff -*-
3 --- libs/locale/src/boost/locale/std/std_backend.cpp
4 +++ libs/locale/src/boost/locale/std/std_backend.cpp
5 @@ -86,6 +86,7 @@
6  #endif
7                  utf_mode_ = utf8_support::none;
8              } else {
9 +                #if !defined(BOOST_WINDOWS)
10                  if(loadable(lid)) {
11                      name_ = lid;
12                      utf_mode_ = utf8_support::native_with_wide;
13 @@ -98,8 +99,8 @@
14                      utf_mode_ = utf8_support::from_wide;
15  #endif
16                  }
17 -#if defined(BOOST_WINDOWS)
18 -                else if(loadable(win_name))
19 +                #else
20 +                if(loadable(win_name))
21                  {
22                      name_ = win_name;
23                      utf_mode_ = utf8_support::from_wide;