Skip to content

Commit

Permalink
Use proper locale in history encoding test
Browse files Browse the repository at this point in the history
  • Loading branch information
tompng committed Sep 24, 2024
1 parent 71f4d6b commit bb124b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/irb/test_history.rb
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def test_history_concurrent_use_not_present
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
Expand Down

0 comments on commit bb124b2

Please sign in to comment.