зеркало из https://github.com/github/ruby.git
Skip test if locale is not Japanese nor UTF-8.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
b80154157a
Коммит
1971897890
|
@ -285,11 +285,13 @@ class TestReadline < Test::Unit::TestCase
|
|||
bug5941 = '[Bug #5941]'
|
||||
completion_case_fold = Readline.completion_case_fold
|
||||
Readline.completion_case_fold = false
|
||||
locale = Encoding.find("locale")
|
||||
if locale == Encoding::UTF_8
|
||||
case locale = Encoding.find("locale")
|
||||
when Encoding::UTF_8
|
||||
enc1 = Encoding::EUC_JP
|
||||
else
|
||||
when Encoding::EUC_JP, Encoding::Windows_31J
|
||||
enc1 = Encoding::UTF_8
|
||||
else
|
||||
skip
|
||||
end
|
||||
results = nil
|
||||
Readline.completion_proc = ->(text) {results}
|
||||
|
|
Загрузка…
Ссылка в новой задаче