summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlex Morega <alex@grep.ro>2014-01-08 13:24:40 +0200
committerAlex Morega <alex@grep.ro>2014-01-08 13:26:29 +0200
commitc21a3323d27f17556cd997a0f9279c6d0ec65be3 (patch)
tree53fbc0896b69e4b18ac61baf6e0d647d8c183036 /tests
parent7bad77ded77f658c2b8a478e4a35a672d143606e (diff)
downloadbabel-c21a3323d27f17556cd997a0f9279c6d0ec65be3.tar.gz
correctly handle 'C.UTF-8' locale
fixes #57
Diffstat (limited to 'tests')
-rw-r--r--tests/test_core.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_core.py b/tests/test_core.py
index ec3f9ea..ac2611d 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -238,6 +238,10 @@ def test_default_locale(os_environ):
os_environ['LC_MESSAGES'] = 'POSIX'
assert default_locale('LC_MESSAGES') == 'en_US_POSIX'
+ for value in ['C', 'C.UTF-8', 'POSIX']:
+ os_environ['LANGUAGE'] = value
+ assert default_locale() == 'en_US_POSIX'
+
def test_negotiate_locale():
assert (core.negotiate_locale(['de_DE', 'en_US'], ['de_DE', 'de_AT']) ==