[Bug #20929] Fix assert_zone_encoding
The default internal encoding is not taken into account to encode timezone name.
This commit is contained in:
parent
58b4e249ed
commit
78762b5218
Notes:
git
2024-12-06 10:00:01 +00:00
@ -723,7 +723,7 @@ class TestTime < Test::Unit::TestCase
|
|||||||
if zone.ascii_only?
|
if zone.ascii_only?
|
||||||
assert_equal(Encoding::US_ASCII, zone.encoding)
|
assert_equal(Encoding::US_ASCII, zone.encoding)
|
||||||
else
|
else
|
||||||
enc = Encoding.default_internal || Encoding.find('locale')
|
enc = Encoding.find('locale')
|
||||||
assert_equal(enc, zone.encoding)
|
assert_equal(enc, zone.encoding)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user