Skip to content

Commit d9e1a7c

Browse files
committed
[Bug #21018] Fix for s390x
1 parent 450d9dc commit d9e1a7c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/ruby/test_rubyoptions.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -447,9 +447,9 @@ def test_invalid_option
447447

448448
assert_in_out_err(%w(-Z), "", [], /invalid option -Z \(-h will show valid options\) \(RuntimeError\)/)
449449

450-
# On some platforms, langinfo returns ANSI_X3.4-1968 when LC_ALL=C and fall backs to UTF-8.
451-
# Anyway only printable chars should be printed.
452-
assert_in_out_err(%W(-\u{1f608}), "", [], /invalid option -(\\xf0|\u{1f608}) \(-h will show valid options\) \(RuntimeError\)/)
450+
assert_in_out_err(%W(-\u{1f608}), "", [],
451+
/invalid option -(\\xf0|\u{1f608}) \(-h will show valid options\) \(RuntimeError\)/,
452+
encoding: Encoding::UTF_8)
453453
end
454454

455455
def test_rubyopt

0 commit comments

Comments
 (0)