8000 [Bug #20929] Fix `assert_zone_encoding` · github/ruby@78762b5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 78762b5

Browse files
committed
[Bug #20929] Fix assert_zone_encoding
The default internal encoding is not taken into account to encode timezone name.
1 parent 58b4e24 commit 78762b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/ruby/test_time.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@ def assert_zone_encoding(time)
723723
if zone.ascii_only?
724724
assert_equal(Encoding::US_ASCII, zone.encoding)
725725
else
726-
enc = Encoding.default_internal || Encoding.find('locale')
726+
enc = Encoding.find('locale')
727727
assert_equal(enc, zone.encoding)
728728
end
729729
end

0 commit comments

Comments
 (0)
0