11# -*- coding: utf-8 -*-
22#
33# Copyright (C) 2012 Kouhei Sutou <kou@clear-code.com>
4+ # Copyright (C) 2012 Hleb Valoshka
45# Copyright (C) 2009-2010 Masao Mutoh
56#
67# License: Ruby's or LGPL
@@ -27,14 +28,14 @@ def setup
2728 Locale . init
2829 Locale . clear_all
2930 ENV [ "LC_ALL" ] = nil
30- ENV [ "LC_MESSAGES " ] = nil
31+ ENV [ "LC_CTYPES " ] = nil
3132 ENV [ "LANG" ] = nil
3233 ENV [ "LANGUAGE" ] = nil
3334 end
3435
3536 def test_lc_all
3637 ENV [ "LC_ALL" ] = "ja_JP.eucJP"
37- ENV [ "LC_MESSAGES " ] = "zh_CN.UTF-8" #Ignored.
38+ ENV [ "LC_CTYPES " ] = "zh_CN.UTF-8" #Ignored.
3839 ENV [ "LANG" ] = "ko_KR.UTF-8" #Ignored.
3940 ENV [ "LANGUAGE" ] = nil
4041
@@ -50,7 +51,7 @@ def test_lc_all
5051
5152 def test_lc_messages
5253 ENV [ "LC_ALL" ] = nil
53- ENV [ "LC_MESSAGES " ] = "ja_JP.eucJP"
54+ ENV [ "LC_CTYPES " ] = "ja_JP.eucJP"
5455 ENV [ "LANG" ] = "ko_KR.UTF-8" #Ignored.
5556 ENV [ "LANGUAGE" ] = nil
5657
@@ -66,7 +67,7 @@ def test_lc_messages
6667
6768 def test_lang
6869 ENV [ "LC_ALL" ] = nil
69- ENV [ "LC_MESSAGES " ] = nil
70+ ENV [ "LC_CTYPES " ] = nil
7071 ENV [ "LANG" ] = "ja_JP.eucJP"
7172 ENV [ "LANGUAGE" ] = nil
7273
@@ -82,7 +83,7 @@ def test_lang
8283
8384 def test_lang_complex
8485 ENV [ "LC_ALL" ] = "zh_CN.UTF-8" # Ignored.
85- ENV [ "LC_MESSAGES " ] = "ko_KR.UTF-8" #Ingored.
86+ ENV [ "LC_CTYPES " ] = "ko_KR.UTF-8" #Ingored.
8687 ENV [ "LANG" ] = "en_US.UTF-8" # Ignored.
8788 ENV [ "LANGUAGE" ] = "ja_JP.eucJP:zh_CN.UTF-8"
8889
0 commit comments