summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2024-12-05 19:52:54 +0900
committerNobuyoshi Nakada <[email protected]>2024-12-06 18:59:38 +0900
commit78762b52185aa80ee55c0d49b495aceed863dce2 (patch)
tree8c5755be01d0e6fb7ebac5b202fb8c65e49a0ece /test
parent58b4e249ed8d33fc78528bc77516d541c04d65f2 (diff)
[Bug #20929] Fix `assert_zone_encoding`
The default internal encoding is not taken into account to encode timezone name.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/12269
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_time.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_time.rb b/test/ruby/test_time.rb
index 333edb8021..d4c91e1035 100644
--- a/test/ruby/test_time.rb
+++ b/test/ruby/test_time.rb
@@ -723,7 +723,7 @@ class TestTime < Test::Unit::TestCase
if zone.ascii_only?
assert_equal(Encoding::US_ASCII, zone.encoding)
else
- enc = Encoding.default_internal || Encoding.find('locale')
+ enc = Encoding.find('locale')
assert_equal(enc, zone.encoding)
end
end