summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas K. Hüttel <dilfridge@gentoo.org>2020-11-28 20:51:05 +0200
committerAndreas K. Hüttel <dilfridge@gentoo.org>2020-11-28 20:53:56 +0200
commit9442d61a4c4d8483f53868776586446aba7a7d78 (patch)
treea761ad33d13f1ac997918d2ded3a7c4624b117d2 /dev-libs/icu
parentx11-wm/goomwwm: drop old (diff)
downloadgentoo-9442d61a4c4d8483f53868776586446aba7a7d78.tar.gz
gentoo-9442d61a4c4d8483f53868776586446aba7a7d78.tar.bz2
gentoo-9442d61a4c4d8483f53868776586446aba7a7d78.zip
dev-libs/icu: Allow non-utf8 locales again
Bug: https://bugs.gentoo.org/679674 Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
Diffstat (limited to 'dev-libs/icu')
-rw-r--r--dev-libs/icu/files/icu-68.1-nonunicode.patch12
-rw-r--r--dev-libs/icu/icu-68.1.ebuild1
2 files changed, 13 insertions, 0 deletions
diff --git a/dev-libs/icu/files/icu-68.1-nonunicode.patch b/dev-libs/icu/files/icu-68.1-nonunicode.patch
new file mode 100644
index 000000000000..e02c1413d996
--- /dev/null
+++ b/dev-libs/icu/files/icu-68.1-nonunicode.patch
@@ -0,0 +1,12 @@
+diff -ruN a/common/unicode/platform.h b/common/unicode/platform.h
+--- a/common/unicode/platform.h 2020-10-28 23:21:12.000000000 +0200
++++ b/common/unicode/platform.h 2020-11-28 20:48:53.223629867 +0200
+@@ -649,7 +649,7 @@
+ /* Use the predefined value. */
+ #elif U_PLATFORM_IS_LINUX_BASED || U_PLATFORM_IS_DARWIN_BASED || \
+ U_PLATFORM == U_PF_EMSCRIPTEN
+-# define U_CHARSET_IS_UTF8 1
++# define U_CHARSET_IS_UTF8 0
+ #else
+ # define U_CHARSET_IS_UTF8 0
+ #endif
diff --git a/dev-libs/icu/icu-68.1.ebuild b/dev-libs/icu/icu-68.1.ebuild
index 50248a6dbbd2..e13a81c1b337 100644
--- a/dev-libs/icu/icu-68.1.ebuild
+++ b/dev-libs/icu/icu-68.1.ebuild
@@ -31,6 +31,7 @@ MULTILIB_CHOST_TOOLS=(
PATCHES=(
"${FILESDIR}/${PN}-65.1-remove-bashisms.patch"
"${FILESDIR}/${PN}-64.2-darwin.patch"
+ "${FILESDIR}/${PN}-68.1-nonunicode.patch"
)
src_prepare() {