From d6e84d97fee0eed62d0df20a144b11ec3c8240d4 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Wed, 21 Sep 2022 10:46:35 +0900 Subject: [PATCH] Fix the missing locale error --- test/irb/test_history.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/test/irb/test_history.rb b/test/irb/test_history.rb index 206970714a..8da86ca7a8 100644 --- a/test/irb/test_history.rb +++ b/test/irb/test_history.rb @@ -161,6 +161,7 @@ module TestIRB def test_history_concurrent_use_not_present backup_home = ENV["HOME"] backup_xdg_config_home = ENV.delete("XDG_CONFIG_HOME") + IRB.conf[:LC_MESSAGES] = IRB::Locale.new IRB.conf[:SAVE_HISTORY] = 1 Dir.mktmpdir("test_irb_history_") do |tmpdir| ENV["HOME"] = tmpdir