swig/ruby-2.0-encoding-utf8.patch

13 lines
686 B
Diff
Raw Normal View History

diff -wruN -x '*~' -x '*.o' -x '*.a' -x '*.so' -x '*.so.[0-9]' -x autom4te.cache -x .deps -x .libs -x Makefile -x Makefile ../orig-swig-2.0.10/Examples/test-suite/ruby/char_constant_runme.rb ./Examples/test-suite/ruby/char_constant_runme.rb
--- ../orig-swig-2.0.10/Examples/test-suite/ruby/char_constant_runme.rb 2013-05-27 20:24:04.000000000 +0200
+++ ./Examples/test-suite/ruby/char_constant_runme.rb 2013-05-28 14:48:44.924421929 +0200
@@ -28,7 +28,7 @@
raise RuntimeError, "Invalid value for NULL_CONST."
end
-if Char_constant::SPECIALCHAR != "\341" #'<27>'
+if Char_constant::SPECIALCHAR.ord != 225 # "\341" #'<27>'
raise RuntimeError, "Invalid value for SPECIALCHAR."
end