summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_locale.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2017-03-08 06:03:13 (GMT)
committerGitHub <noreply@github.com>2017-03-08 06:03:13 (GMT)
commit02371e0ed1ee82ec73e7d363bcf2ed40cde1397a (patch)
tree148073e6dcbb0d5ca2b0430d64290cc9570b7bc9 /Lib/test/test_locale.py
parent9f8ad3f39e0a92ed37d012b9dd237399524f0d51 (diff)
downloadcpython-02371e0ed1ee82ec73e7d363bcf2ed40cde1397a.zip
cpython-02371e0ed1ee82ec73e7d363bcf2ed40cde1397a.tar.gz
cpython-02371e0ed1ee82ec73e7d363bcf2ed40cde1397a.tar.bz2
make the glibc alias table take precedence over the X11 one (#422)
bpo-20087
Diffstat (limited to 'Lib/test/test_locale.py')
-rw-r--r--Lib/test/test_locale.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/test/test_locale.py b/Lib/test/test_locale.py
index 99fab58..2144819 100644
--- a/Lib/test/test_locale.py
+++ b/Lib/test/test_locale.py
@@ -449,7 +449,7 @@ class NormalizeTest(unittest.TestCase):
self.check('ko_kr.euckr', 'ko_KR.eucKR')
self.check('zh_cn.euc', 'zh_CN.eucCN')
self.check('zh_tw.euc', 'zh_TW.eucTW')
- self.check('zh_tw.euctw', 'zh_TW.eucTW')
+ self.check('zh_tw.euctw', 'zh_TW.EUC_TW')
def test_japanese(self):
self.check('ja', 'ja_JP.eucJP')
@@ -475,6 +475,9 @@ class NormalizeTest(unittest.TestCase):
self.check('japanese.sjis', 'ja_JP.SJIS')
self.check('jp_jp', 'ja_JP.eucJP')
+ def test_en_IN(self):
+ self.check('en_IN', 'en_IN.UTF-8')
+
class TestMiscellaneous(unittest.TestCase):
def test_getpreferredencoding(self):