Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 383011

Summary: dev-libs/hpricot-0.8.4-r1 fails tests (with ruby:1.9)
Product: Gentoo Linux Reporter: Nathan Phillip Brink (binki) (RETIRED) <binki>
Component: [OLD] LibraryAssignee: Gentoo Ruby Team <ruby>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: hpricot-0.8.4-r1-build.log
emerge--info.txt

Description Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2011-09-15 03:40:17 UTC
Created attachment 286505 [details]
hpricot-0.8.4-r1-build.log

Excerpts from the build.log seem to indicate that these test failures are related to the change in handing character encodings from ruby:1.8 to ruby:1.9:

  1) Error:
test_encoding_compatibility_error(TestParser):
ArgumentError: invalid byte sequence in US-ASCII
...
  2) Error:
test_scan_boingboing(TestParser):
ArgumentError: invalid byte sequence in US-ASCII
...
  3) Failure:
test_files(TestPreserved) [test/test_preserved.rb:61]:
<"8 Schandmaul - Magda Treadgolds M\xC3\xA4rchen<br>\n"> expected but was
<"8 Schandmaul - Magda Treadgolds M\u00E4rchen<br>\n">.
Comment 1 Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2011-09-15 03:41:11 UTC
Created attachment 286507 [details]
emerge--info.txt
Comment 2 Hans de Graaff gentoo-dev Security 2011-12-27 07:54:02 UTC
These tests fail because LANG=C. Fixed in hpricot 1.8.5.