7b7ed248c4
More exotic locales like es-419 cannot be parsed by boost, so we fall-back to the default encoding. This avoids an exception: invalid_charset_error of the form: "Invalid or unsupported charset:us-ascii or UTF-8" for this case. Change-Id: I6796dd893ec774b221956ea9febbcc19495d47b5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130102 Tested-by: Jenkins Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
13 lines
402 B
Diff
13 lines
402 B
Diff
--- foo/misc/boost.orig/libs/locale/src/util/locale_data.cpp.new 2022-02-17 22:41:27.730549039 +0000
|
|
+++ foo/misc/boost/libs/locale/src/util/locale_data.cpp
|
|
@@ -18,8 +18,8 @@
|
|
language = "C";
|
|
country.clear();
|
|
variant.clear();
|
|
- encoding = "us-ascii";
|
|
- utf8=false;
|
|
+ encoding = "UTF-8";
|
|
+ utf8=true;
|
|
parse_from_lang(locale_name);
|
|
}
|
|
|