]> git.pld-linux.org Git - packages/mkvtoolnix.git/commitdiff
rediff patch
authorJan Palus <atler@pld-linux.org>
Tue, 10 Aug 2021 10:14:21 +0000 (12:14 +0200)
committerJan Palus <atler@pld-linux.org>
Tue, 10 Aug 2021 10:14:21 +0000 (12:14 +0200)
mkvtoolnix-init_locales.patch

index fad38c88041565c5cb49d16b7c837592c6d5c950..5c103c541c73485baf642d7a8109c8d70f35d305 100644 (file)
@@ -1,11 +1,11 @@
 --- mkvtoolnix-2.8.0/src/common/translation.cpp.orig   2009-05-10 16:14:28.000000000 +0200
 +++ mkvtoolnix-2.8.0/src/common/translation.cpp        2009-05-10 15:05:54.000000000 +0200
 @@ -210,7 +210,7 @@
-   mxverb(4, boost::format("[init_locales chosen locale %1%]\n") % chosen_locale);
+     chosen_locale = "C";
  
    if (chosen_locale.empty())
 -    mxerror(Y("The locale could not be set properly. Check the LANG, LC_ALL and LC_MESSAGES environment variables.\n"));
 +    mxwarn("The locale could not be set properly. Check the LANG, LC_ALL and LC_MESSAGES environment variables.\n");
  
-   locale_dir = MTX_LOCALE_DIR;
- # endif  // SYS_WINDOWS
+   std::locale utf8_locale(std::locale(), new mtx::utf8_codecvt_facet);
+   std::locale::global(utf8_locale);
This page took 0.083312 seconds and 4 git commands to generate.