[DRE-commits] [SCM] ruby-gettext.git branch, master, updated. debian/2.2.1-2-27-g97c4c33

Jérémy Bobbio lunar at debian.org
Sat Mar 16 21:50:37 UTC 2013


The following commit has been merged in the master branch:
commit e2f940460d8533b54fff49049a73dd61aeeac5ac
Author: Jérémy Bobbio <lunar at debian.org>
Date:   Sat Mar 16 16:31:39 2013 +0000

    Run tests with UTF-8 as the default external encoding
    
    This avoids the following error in the test suite:
    ===============================================================================
    Error: test_non_ascii(TestGetTextParser::TestErbParser)
    ArgumentError: invalid byte sequence in US-ASCII
    /tmp/buildd/ruby-gettext-2.3.7/lib/gettext/tools/parser/erb.rb:45:in `gsub'
         42:         src.force_encoding(encoding)
         43:
         44:         # Remove magic comment prepended by erb in Ruby 1.9.
      => 45:         src = src.gsub(MAGIC_COMMENT, "")
         46:       end
         47:
         48:       erb = src.split(/$/)
    /tmp/buildd/ruby-gettext-2.3.7/lib/gettext/tools/parser/erb.rb:45:in `parse'
    /tmp/buildd/ruby-gettext-2.3.7/test/test_parser.rb:161:in `test_non_ascii'
    ===============================================================================

diff --git a/debian/ruby-tests.rb b/debian/ruby-tests.rb
index 0a4d0c9..5fe71b6 100644
--- a/debian/ruby-tests.rb
+++ b/debian/ruby-tests.rb
@@ -1 +1,4 @@
+if RUBY_VERSION >= '1.9'
+  Encoding.default_external = Encoding::UTF_8
+end
 require "test/run-test"

-- 
ruby-gettext.git



More information about the Pkg-ruby-extras-commits mailing list