[DRE-commits] [SCM] ruby-gherkin.git branch, master, updated. 059a2c7a8e33cdb8a2efd114be356f6c581d9323
Antonio Terceiro
terceiro at softwarelivre.org
Mon Aug 15 02:46:09 UTC 2011
The following commit has been merged in the master branch:
commit 9933916253585991c8c87a1dfa9e9aae586bf10c
Author: Antonio Terceiro <terceiro at softwarelivre.org>
Date: Sun Aug 7 19:33:54 2011 -0700
Workaround Ruby 1.9 problems with LANG=C and UTF-8 output
Problem reported upstream:
https://github.com/cucumber/gherkin/issues/118
diff --git a/debian/ruby-tests.rb b/debian/ruby-tests.rb
index d1a700a..8531fa4 100644
--- a/debian/ruby-tests.rb
+++ b/debian/ruby-tests.rb
@@ -1,3 +1,6 @@
+if RUBY_VERSION =~ /1.9/
+ Encoding.default_external = 'UTF-8'
+end
$: << 'spec'
Dir.glob('spec/**/*_spec.rb').each do |f|
require f
--
ruby-gherkin.git
More information about the Pkg-ruby-extras-commits
mailing list