From 9e2c35f766a01aa96459e2d3ce3f63b8d5aefe2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= Date: Fri, 29 Nov 2013 13:48:07 +0100 Subject: [PATCH] Make string encoding explitic Ruby 2.0 enforces explicit string encodings. The char_constant testcase fails because the internal (SWIG_FromCharPtrAndSize, using rb_str_new) defaults to ASCII-8BIT while the test-suite file defaults to the current shell LOCALE setting. This patch sets the char_constant_runme.rb encoding to ASCII-8BIT. --- Examples/test-suite/ruby/char_constant_runme.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Examples/test-suite/ruby/char_constant_runme.rb b/Examples/test-suite/ruby/char_constant_runme.rb index 4e9d9d59c..4c56ecbf7 100644 --- a/Examples/test-suite/ruby/char_constant_runme.rb +++ b/Examples/test-suite/ruby/char_constant_runme.rb @@ -1,5 +1,5 @@ #!/usr/bin/env ruby -# +#Encoding: ASCII-8BIT # Put description here # #