1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Not all environment variables can be convertible to IBM-437

This commit is contained in:
Nobuyoshi Nakada 2021-10-18 00:23:59 +09:00
parent c7eac1be51
commit 0871652f21
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -52,7 +52,9 @@ describe "ENV.shift" do
Encoding.default_internal = Encoding::IBM437
pair = ENV.shift
pair.first.encode(Encoding::IBM437) rescue next
pair.first.encoding.should equal(Encoding::IBM437)
pair.last.encode(Encoding::IBM437) rescue next
pair.last.encoding.should equal(Encoding::IBM437)
end
end