Skip to content

Commit

Permalink
Not all environment variables can be convertible to IBM-437
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Oct 17, 2021
1 parent c7eac1b commit 0871652
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/ruby/core/env/shift_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@
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

0 comments on commit 0871652

Please sign in to comment.