From 6e024097a60a961ef48f1d0db9b43e10c33399fc Mon Sep 17 00:00:00 2001 From: Lars Kanis Date: Tue, 15 Sep 2026 08:44:25 +0200 Subject: [PATCH] ENV.keys encoding on Windows was backported to 4.0 and 3.4 See https://bugs.ruby-lang.org/issues/20958 --- core/env/each_key_spec.rb | 4 ++-- core/env/keys_spec.rb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/env/each_key_spec.rb b/core/env/each_key_spec.rb index 77a3bb7d8..abaaf181f 100644 --- a/core/env/each_key_spec.rb +++ b/core/env/each_key_spec.rb @@ -34,7 +34,7 @@ # https://bugs.ruby-lang.org/issues/20958 platform_is :windows do - ruby_version_is ""..."4.1" do + ruby_version_is ""..."3.4.11" do it "returns keys in the locale encoding" do ENV.each_key do |key| key.encoding.should == Encoding.find('locale') @@ -42,7 +42,7 @@ end end - ruby_version_is "4.1" do + ruby_version_is "3.4.11" do it "returns the keys in UTF-8" do ENV.each_key do |key| key.encoding.should == Encoding::UTF_8 diff --git a/core/env/keys_spec.rb b/core/env/keys_spec.rb index 0efe841cc..e2de0b739 100644 --- a/core/env/keys_spec.rb +++ b/core/env/keys_spec.rb @@ -16,7 +16,7 @@ # https://bugs.ruby-lang.org/issues/20958 platform_is :windows do - ruby_version_is ""..."4.1" do + ruby_version_is ""..."3.4.11" do it "returns the keys in the locale encoding" do ENV.keys.each do |key| key.encoding.should == Encoding.find('locale') @@ -24,7 +24,7 @@ end end - ruby_version_is "4.1" do + ruby_version_is "3.4.11" do it "returns the keys in UTF-8" do ENV.keys.each do |key| key.encoding.should == Encoding::UTF_8