On Sat, Oct 08, 2011 at 08:40:06PM +0200, Martin Ueding wrote: > I just include the tests in ruby-mustache since ruby-contest is > available in unstable now.
> One of the tests fails with Ruby 1.9.1 though, so the package cannot be
> build.
> The bug is reported [upstream][1].
> Should I just wait or somehow create a patch that does not use this test?
This is something that happened with other packages. It has to do with
the external default encoding, and the unicode characters used in
mustache_test.rb. The following patch allowed me to compile
ruby-mustache from the git repo.
Best regards,
Cédric
--- a/test/mustache_test.rb +++ b/test/mustache_test.rb @@ -1,5 +1,10 @@ # -*- coding: utf-8 -*- $LOAD_PATH.unshift File.dirname(__FILE__) + +if RUBY_VERSION =~ /1.9/ + Encoding.default_external = Encoding::UTF_8 +end + require 'helper' class MustacheTest < Test::Unit::TestCase
signature.asc
Description: Digital signature
_______________________________________________ Pkg-ruby-extras-maintainers mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-ruby-extras-maintainers
