mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 04:24:23 +00:00
[ruby/irb] Use proper locale in history encoding test
(https://github.com/ruby/irb/pull/1008) https://github.com/ruby/irb/commit/f6b06a9a40
This commit is contained in:
parent
2a0ee408af
commit
07842491c5
@ -149,7 +149,7 @@ module TestIRB
|
||||
def test_history_different_encodings
|
||||
IRB.conf[:SAVE_HISTORY] = 2
|
||||
Encoding.default_external = Encoding::US_ASCII
|
||||
locale = IRB::Locale.new("C")
|
||||
locale = IRB::Locale.new("en_US.ASCII")
|
||||
assert_history(<<~EXPECTED_HISTORY.encode(Encoding::US_ASCII), <<~INITIAL_HISTORY.encode(Encoding::UTF_8), <<~INPUT, locale: locale)
|
||||
????
|
||||
exit
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user