diff options
Diffstat (limited to 'test/ruby/test_env.rb')
-rw-r--r-- | test/ruby/test_env.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/ruby/test_env.rb b/test/ruby/test_env.rb index 070e10464e..364f88e00a 100644 --- a/test/ruby/test_env.rb +++ b/test/ruby/test_env.rb @@ -482,5 +482,16 @@ class TestEnv < Test::Unit::TestCase 500.times(&doit) end; end + + if Encoding.find("locale") == Encoding::UTF_8 + def test_utf8 + text = "testing åáâäãāあ" + test = ENV["test"] + ENV["test"] = text + assert_equal text, ENV["test"] + ensure + ENV["test"] = test + end + end end end |