summaryrefslogtreecommitdiff
path: root/test/ruby/test_rubyoptions.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2025-01-12 23:01:07 +0900
committerNobuyoshi Nakada <[email protected]>2025-01-12 23:01:07 +0900
commitd9e1a7cdf8a6e8327cd09a891fd45d6af357f926 (patch)
treefd26d9c1dc4207a8f0a63b3f6930e01a1aead679 /test/ruby/test_rubyoptions.rb
parent450d9dc8bf086747c4dde03441a44873163a2b9c (diff)
[Bug #21018] Fix for s390x
Diffstat (limited to 'test/ruby/test_rubyoptions.rb')
-rw-r--r--test/ruby/test_rubyoptions.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb
index 16e2932114..dbaf074db9 100644
--- a/test/ruby/test_rubyoptions.rb
+++ b/test/ruby/test_rubyoptions.rb
@@ -447,9 +447,9 @@ class TestRubyOptions < Test::Unit::TestCase
assert_in_out_err(%w(-Z), "", [], /invalid option -Z \(-h will show valid options\) \(RuntimeError\)/)
- # On some platforms, langinfo returns ANSI_X3.4-1968 when LC_ALL=C and fall backs to UTF-8.
- # Anyway only printable chars should be printed.
- assert_in_out_err(%W(-\u{1f608}), "", [], /invalid option -(\\xf0|\u{1f608}) \(-h will show valid options\) \(RuntimeError\)/)
+ assert_in_out_err(%W(-\u{1f608}), "", [],
+ /invalid option -(\\xf0|\u{1f608}) \(-h will show valid options\) \(RuntimeError\)/,
+ encoding: Encoding::UTF_8)
end
def test_rubyopt