sw a11y: clang-format SidebarWinAccessible code
[LibreOffice.git] / external / boost / windows-no-utf8-locales.patch.0
blobec0313294375d9e3fd920bda3a76474e29add6e7
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 @@ -138,10 +138,14 @@
6                  } else
7                      name_ = "C";
8              } else {
9 +#if !defined(BOOST_WINDOWS)
10                  if(loadable(lid)) {
11                      name_ = lid;
12                      utf_mode_ = utf8_support::native;
13                  } else {
14 +#else
15 +                {
16 +#endif
17                      std::vector<std::string> alt_names;
18                      if(l_win)
19                          alt_names.push_back(l_win.name);