diff options
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; + } + |