[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:
tomoya ishida 2024-09-24 23:07:43 +09:00 committed by git
parent 2a0ee408af
commit 07842491c5

View File

@ -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