diff options
author | Marek Safar <marek.safar@gmail.com> | 2014-03-31 21:07:48 +0400 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2014-03-31 21:09:29 +0400 |
commit | c72270afd67a47029a17908f807af24cef732148 (patch) | |
tree | 07bfec5ccee2ad6fdcfc03695ad99d9ac10cfe88 /tools | |
parent | c3b8b743405619e8102bee42249191dd53614322 (diff) |
[corlib] Filter out any right-to-left sign characters. Fixes #18522
Diffstat (limited to 'tools')
-rw-r--r-- | tools/locale-builder/Driver.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/locale-builder/Driver.cs b/tools/locale-builder/Driver.cs index 4b8ae34994a..1a44d5eb7e1 100644 --- a/tools/locale-builder/Driver.cs +++ b/tools/locale-builder/Driver.cs @@ -1117,9 +1117,12 @@ namespace Mono.Tools.LocaleBuilder if (el != null) { // CLDR uses unicode negative sign for some culture (e.g sv, is, lt, don't kwnow why) but .net always // uses simple - sign - if (el.InnerText == "\u2212") + if (el.InnerText == "\u2212") { ni.NegativeSign = "-"; - else + } else if (el.InnerText == "\u200F\u002D") { + // Remove any right-to-left mark characters + ni.NegativeSign = "-"; + } else ni.NegativeSign = el.InnerText; } |