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')) {