Package: ruby-htmlentities Version: 4.3.0-1 Severity: minor Tags: upstream Hi,
While preparing an upload for the 4.3.0 release of your package, I noticed a newly added part of the test suite fails under Ruby 1.9.1: # Running tests: .....................................................F.F.... Finished tests in 3.584750s, 16.7376 tests/s, 903.8287 assertions/s. 1) Failure: test_should_encode_ascii_to_ascii(HTMLEntities::Ruby19Test) [/home/gwolf/cvs/build-area/ruby-htmlentities-4.3.0/test/ruby_1_9_test.rb:13]: <#<Encoding:US-ASCII>> expected but was <#<Encoding:UTF-8>>. 2) Failure: test_should_encode_utf8_to_ascii_if_possible(HTMLEntities::Ruby19Test) [/home/gwolf/cvs/build-area/ruby-htmlentities-4.3.0/test/ruby_1_9_test.rb:31]: <#<Encoding:US-ASCII>> expected but was <#<Encoding:UTF-8>>. I shrunk it to the following case: $ ruby1.9.1 -e 'require "htmlentities"; t=HTMLEntities.new.encode("<élan>"); puts t; puts t.encoding' <élan> UTF-8 This is, the «é» character is not getting encoded into an ASCII-safe character. The only reason I can find for the encoder not to notice my «é» is that my current locale (and terminal) are UTF-based, where you might be detecting single characters: $ echo $LANG en_US.utf8 Thanks for any hints you can give. -- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 3.0.0-1-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash -- Gunnar Wolf • gw...@gwolf.org • (+52-55)5623-0154 / 1451-2244
signature.asc
Description: Digital signature