Skip to content

Commit

Permalink
[Bug #21018] Fix for s390x
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Jan 12, 2025
1 parent 450d9dc commit d9e1a7c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/ruby/test_rubyoptions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -447,9 +447,9 @@ def test_invalid_option

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
Expand Down

0 comments on commit d9e1a7c

Please sign in to comment.