Nikolay Sivov : nls: Hardcode minus sign for all locales.

Alexandre Julliard julliard at winehq.org
Wed Apr 27 16:12:12 CDT 2022


Module: wine
Branch: master
Commit: 1ad2cb51c5b3cf98104ea15db4fc6f38e9da6e8a
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=1ad2cb51c5b3cf98104ea15db4fc6f38e9da6e8a

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Wed Apr 27 14:21:16 2022 +0300

nls: Hardcode minus sign for all locales.

CLDR data for RTL locales includes LRM marker for minus sign text,
in addition to that some locales are using different dash character.
Windows seems to consistently use same character for all locales.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52866
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 nls/locale.nls     | Bin 730526 -> 730506 bytes
 tools/make_unicode |   2 +-
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/nls/locale.nls b/nls/locale.nls
index 329224c92fc..af2f061944a 100644
Binary files a/nls/locale.nls and b/nls/locale.nls differ
diff --git a/tools/make_unicode b/tools/make_unicode
index 29dea8cd52e..40b64ddca71 100755
--- a/tools/make_unicode
+++ b/tools/make_unicode
@@ -4716,7 +4716,7 @@ sub build_locale_data()
         $sthousand =~ s/\x{202f}/\x{00a0}/;
         my $smonthousandsep = loc_query( $loc, "/ldml/numbers/symbols[\@numberSystem='latn']/currencyGroup" ) || $sthousand;
         my $spositivesign = "";
-        my $snegativesign = loc_query( $loc, "/ldml/numbers/symbols[\@numberSystem='latn']/minusSign" );
+        my $snegativesign = "-";
         my $spercent = loc_query( $loc, "/ldml/numbers/symbols[\@numberSystem='latn']/percentSign" );
         my $snan = loc_query( $loc, "/ldml/numbers/symbols[\@numberSystem='latn']/nan" );
         my $sposinfinity = loc_query( $loc, "/ldml/numbers/symbols[\@numberSystem='latn']/infinity" );




More information about the wine-cvs mailing list