diff options
author | Atsushi Eno <atsushieno@gmail.com> | 2004-06-05 21:36:35 +0400 |
---|---|---|
committer | Atsushi Eno <atsushieno@gmail.com> | 2004-06-05 21:36:35 +0400 |
commit | 8d1b281523436c0eb1ffe1d64c1ab728b8601b3d (patch) | |
tree | 686fc98e38a4bcd1fa3bcbe2d7450809f655877d /tools | |
parent | 07f363f43586cd2cba320ee3e8ea3169c21f67d9 (diff) |
2004-06-05 Atsushi Enomoto <atsushi@ximian.com>
* Driver.cs : Percent patterns are not properly parsed since they are
in fact not separated by '.'
* Entry.cs : Escape '\' to "\\" (for Japanese yen-sign fix).
svn path=/trunk/mono/; revision=28879
Diffstat (limited to 'tools')
-rw-r--r-- | tools/locale-builder/ChangeLog | 6 | ||||
-rw-r--r-- | tools/locale-builder/Driver.cs | 5 | ||||
-rw-r--r-- | tools/locale-builder/Entry.cs | 2 |
3 files changed, 11 insertions, 2 deletions
diff --git a/tools/locale-builder/ChangeLog b/tools/locale-builder/ChangeLog index 6c8c668eb14..b798d2e50d4 100644 --- a/tools/locale-builder/ChangeLog +++ b/tools/locale-builder/ChangeLog @@ -1,5 +1,11 @@ 2004-06-05 Atsushi Enomoto <atsushi@ximian.com> + * Driver.cs : Percent patterns are not properly parsed since they are + in fact not separated by '.' + * Entry.cs : Escape '\' to "\\" (for Japanese yen-sign fix). + +2004-06-05 Atsushi Enomoto <atsushi@ximian.com> + * Driver.cs : - NumberDecimalDigits are almost differently specified by locale xml files. Almost all of them have ".###", but we need ".##" in diff --git a/tools/locale-builder/Driver.cs b/tools/locale-builder/Driver.cs index fb2051a1f90..89735c4f68c 100644 --- a/tools/locale-builder/Driver.cs +++ b/tools/locale-builder/Driver.cs @@ -586,8 +586,6 @@ namespace Mono.Tools.LocaleBuilder { } part_one = format.Split (new char [1] {'.'}, 2); - if (part_one.Length == 1) - part_one = new string [] {part_one [0], String.Empty}; if (part_one.Length == 2) { // assumed same for both positive and negative // decimal digit side @@ -598,6 +596,9 @@ namespace Mono.Tools.LocaleBuilder { else break; } + } + + if (part_one.Length > 0) { // percent grouping side part_two = part_one [0].Split (','); if (part_two.Length > 1) { diff --git a/tools/locale-builder/Entry.cs b/tools/locale-builder/Entry.cs index 15d9a59f436..baf37d2893a 100644 --- a/tools/locale-builder/Entry.cs +++ b/tools/locale-builder/Entry.cs @@ -22,6 +22,8 @@ namespace Mono.Tools.LocaleBuilder { ret.AppendFormat ("\\x{0:x}", b); in_hex = true; } else { + if (b == '\\') + ret.Append ('\\'); ret.Append ((char) b); in_hex = false; } |