Skip to content

Commit

Permalink
Use proper locale in history encoding test (#1008)
Browse files Browse the repository at this point in the history
  • Loading branch information
tompng authored Sep 24, 2024
1 parent 71f4d6b commit f6b06a9
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 f6b06a9

Please sign in to comment.