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:
parent
c7eac1be51
commit
0871652f21
1 changed files with 2 additions and 0 deletions
2
spec/ruby/core/env/shift_spec.rb
vendored
2
spec/ruby/core/env/shift_spec.rb
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue