wanglongqi / pdf2djvu

Automatically exported from code.google.com/p/pdf2djvu
0 stars 2 forks source link

test-nfkc fails if poppler was built with -Bsymbolic: AssertionError: Regexp didn't match: '^\xef\xac\x82uorogra\xef\xac\x81a *$' not found in 'fluorografia \n\x0c\x0c' #90

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install Poppler 0.24.x
2. Try to build the Debian package

What is the expected output? What do you see instead?
One of the tests fails:

FAIL: test-nfkc.test.test_no_nfkc
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/tmp/pdf2djvu-0.7.17/tests/test-nfkc.py", line 33, in test_no_nfkc
    r.assert_(stdout=re('^%s *$' % self.text_no_nfkc, re.M))
  File "/tmp/pdf2djvu-0.7.17/tests/common.py", line 72, in assert_
    assert_grep(self.stdout, stdout)
AssertionError: Regexp didn't match: '^\xef\xac\x82uorogra\xef\xac\x81a *$' not 
found in 'fluorografia \n\x0c\x0c'

This does not happen with Poppler 0.22.

Original issue reported on code.google.com by Mitya57 on 26 Dec 2013 at 4:46

GoogleCodeExporter commented 9 years ago
Thanks for the bug report.

0.24.x for what value of x exactly?

I'm asking because IIRC I tested pdf2djvu against poppler 0.25.0, 0.24.3 and 
probably also 0.24.4, and didn't notice any test failures.

Original comment by jwilk@jwilk.net on 26 Dec 2013 at 6:05

GoogleCodeExporter commented 9 years ago
I tested with 0.24.3 (apt-pinned from Ubuntu trusty on Debian).

Original comment by Mitya57 on 26 Dec 2013 at 6:08

GoogleCodeExporter commented 9 years ago
My wild guess is that poppler built with -Bsymbolic-functions breaks the test.
(Although I don't quite understand why it started failing only now; it should 
fail for any poppler ≥ 0.19).

I will investigate this later.

Original comment by jwilk@jwilk.net on 26 Dec 2013 at 6:42

GoogleCodeExporter commented 9 years ago
I've reproduce the test failure in the setup you described.

Original comment by jwilk@jwilk.net on 27 Dec 2013 at 1:13

GoogleCodeExporter commented 9 years ago
As I suspected, if you rebuild poppler_0.24.3-0ubuntu8 in Debian environment, 
the failure is no longer reproducible.

Original comment by jwilk@jwilk.net on 27 Dec 2013 at 1:45

GoogleCodeExporter commented 9 years ago
Ok, thanks for the investigation. This is still a (minor) bug, though.

Original comment by Mitya57 on 27 Dec 2013 at 1:51

GoogleCodeExporter commented 9 years ago

Original comment by jwilk@jwilk.net on 13 Apr 2014 at 5:08