#236 new
Michael Terry

Test failure on armel/powerpc

Reported by Michael Terry | November 17th, 2011 @ 11:14 AM

Hello! In Ubuntu, a test is failing on armel and powerpc.

Here's the powerpc log (armel is same failure): https://launchpadlibrarian.net/84098620/buildlog_ubuntu-precise-pow...

1) HTML should output html for threshold lang attribute

 Failure/Error: Unable to find matching line from backtrace
   expected: "<p lang=\"fr-fr\">En fran\303\247ais.</p>"
        got: "<p lang=\"fr-fr\">En fran</p>" (using ==)
 # ./spec/formatters/../spec_helper.rb:13:in `examples_from_yaml'
 # debian/ruby-tests.rb:3

Seems to be having trouble with unicode characters.

Downstream bug is: https://bugs.launchpad.net/ubuntu/+source/ruby-redcloth/+bug/891679

Comments and changes to this ticket

  • Josef Stribny

    Josef Stribny April 10th, 2013 @ 08:31 AM

    Hi,

    we also hit this issue on ARM for Fedora. I debugged it little further and found out that the problem lies in C extension that does not specify usage of signed chars explicitly.The default on PowerPC/ARM is to use unsigned char whereas x86 defaults to signed. Fortunately there is a very easy fix -- just compile the extension with "-fsigned-char" flag and you are fine.

    I am attaching the patch of extconf.rb file which then adds the flag to Makefile.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

RedCloth is a Ruby library for converting Textile into HTML

Shared Ticket Bins

People watching this ticket

Attachments

Pages