Browse files

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.
  • Loading branch information...
1 parent 3c5de34 commit 885a7002835f447e87350e7601ea1518e31c8759 @kkaempf kkaempf committed with wsfulton Nov 29, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 Examples/test-suite/ruby/char_constant_runme.rb
@@ -1,5 +1,5 @@
#!/usr/bin/env ruby
+#Encoding: ASCII-8BIT
# Put description here

0 comments on commit 885a700

Please sign in to comment.