diff options
author | Remi Collet <fedora@famillecollet.com> | 2013-03-20 10:29:29 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2013-03-20 10:29:29 +0100 |
commit | 6deac027c98f5d99e1805f9ddc21ff2dbebe0fb7 (patch) | |
tree | 008990c48199f2d517fc9b1a4b47c6b162ec30ef /canonicalize.patch |
Diffstat (limited to 'canonicalize.patch')
-rw-r--r-- | canonicalize.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/canonicalize.patch b/canonicalize.patch new file mode 100644 index 0000000..3ff9c33 --- /dev/null +++ b/canonicalize.patch @@ -0,0 +1,11 @@ +--- source/common/uloc.c 2011-12-12 04:50:00.601092000 -0500 ++++ source/common/uloc.c 2011-12-12 04:56:18.503570000 -0500 +@@ -1712,7 +1712,7 @@ + /* Check for EURO variants. */ + sawEuro = _deleteVariant(variant, variantSize, "EURO", 4); + len -= sawEuro; +- if (sawEuro > 0 && name[len-1] == '_') { /* delete trailing '_' */ ++ if (sawEuro > 0 && len > 0 && name[len-1] == '_') { /* delete trailing '_' */ + --len; + } + |