From 2d51097488e2fc35b7fea136db547d7ead411381f63ed0901f578d197d68fbfa Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Tue, 25 Feb 2020 10:30:44 +0000 Subject: [PATCH] - Add locale.diff [boo#1162882] OBS-URL: https://build.opensuse.org/package/show/X11:common:Factory/icu?expand=0&rev=121 --- icu.changes | 5 +++++ icu.spec | 1 + locale.diff | 20 ++++++++++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 locale.diff diff --git a/icu.changes b/icu.changes index f331544..e097953 100644 --- a/icu.changes +++ b/icu.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Feb 25 10:29:50 UTC 2020 - Jan Engelhardt + +- Add locale.diff [boo#1162882] + ------------------------------------------------------------------- Sun Jan 12 20:29:30 UTC 2020 - Jan Engelhardt diff --git a/icu.spec b/icu.spec index 4bc8883..887bb31 100644 --- a/icu.spec +++ b/icu.spec @@ -45,6 +45,7 @@ Patch3: icu-susevers.diff Patch4: icu-fix-install-mode-files.diff Patch6: icu-error-reporting.diff Patch7: icu-avoid-x87-excess-precision.diff +Patch8: locale.diff BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: pkg-config diff --git a/locale.diff b/locale.diff new file mode 100644 index 0000000..f3b8428 --- /dev/null +++ b/locale.diff @@ -0,0 +1,20 @@ +Execute POSIX behavior not just on Solaris but all POSIX platforms. + +References: https://bugzilla.opensuse.org/1162882 +--- + source/common/putil.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +Index: icu/source/common/putil.cpp +=================================================================== +--- icu.orig/source/common/putil.cpp ++++ icu/source/common/putil.cpp +@@ -1543,7 +1543,7 @@ static const char *uprv_getPOSIXIDForCat + /* Solaris speaks POSIX - See IEEE Std 1003.1-2008 + * This is needed to properly handle empty env. variables + */ +-#if U_PLATFORM == U_PF_SOLARIS ++#if U_PLATFORM_IMPLEMENTS_POSIX + if ((posixID == 0) || (posixID[0] == '\0')) { + posixID = getenv(category == LC_MESSAGES ? "LC_MESSAGES" : "LC_CTYPE"); + if ((posixID == 0) || (posixID[0] == '\0')) {