- Add locale.diff [boo#1162882]

OBS-URL: https://build.opensuse.org/package/show/X11:common:Factory/icu?expand=0&rev=121
This commit is contained in:
Jan Engelhardt 2020-02-25 10:30:44 +00:00 committed by Git OBS Bridge
parent afbd88f038
commit 2d51097488
3 changed files with 26 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Feb 25 10:29:50 UTC 2020 - Jan Engelhardt <jengelh@inai.de>
- Add locale.diff [boo#1162882]
-------------------------------------------------------------------
Sun Jan 12 20:29:30 UTC 2020 - Jan Engelhardt <jengelh@inai.de>

View File

@ -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

20
locale.diff Normal file
View File

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