#6118: poppler-0.31.0
-------------------------+--------------------------
Reporter: fo | Owner: blfs-book@…
Type: enhancement | Status: new
Priority: normal | Milestone: 7.7
Component: BOOK | Version: SVN
Severity: normal | Resolution:
Keywords: |
-------------------------+--------------------------
Comment (by fo):
OK. Solved my problems with the test in our version. I was placing
testfiles in the wrong place. After in the good place it still failed,
until I modified something in the script. Now it is OK, but can't remember
the solving modification.
Good thing is that I confirmed the failure you got in comment:1, although
backwards:
I have:
{{{
$ echo $LANG
pt_BR.UTF-8
}}}
Most tests, I run with env LC_ALL=C make check (or other test command).
With Poppler, I always needed to use may default LANG.
After your problem, and having solved mine, decided to use again env
LC_ALL=C make -k check.
FAIL: check_password
Files not found:
{{{
/tmp/poppler-0.31.0/testfiles/unittestcases/Gday garon - open.pdf
/tmp/poppler-0.31.0/testfiles/unittestcases/Gday garon - owner.pdf
}}}
because they have utf8 filenames:
{{{
$ find -name Gday\*
./testfiles/unittestcases/Gday garçon - owner.pdf
./testfiles/unittestcases/Gday garçon - open.pdf
}}}
The doc is to open is defined in the source code and this seems to be a Qt
test (same problem happens with Qt5):
{{{
$ grep "doc = " ./qt4/tests/check_password.cpp
doc = Poppler::Document::load(QString::fromUtf8(TESTDATADIR
"/unittestcases/Gday garçon - open.pdf"), "",
QString::fromUtf8("garçon").toLatin1() );
doc = Poppler::Document::load(QString::fromUtf8(TESTDATADIR
"/unittestcases/Gday garçon - open.pdf") );
doc = Poppler::Document::load(QString::fromUtf8(TESTDATADIR
"/unittestcases/Gday garçon - owner.pdf"),
QString::fromUtf8("garçon").toLatin1(), "" );
doc = Poppler::Document::load(QString::fromUtf8(TESTDATADIR
"/unittestcases/Gday garçon - owner.pdf"),
QString::fromUtf8("garçon").toLatin1() );
doc = Poppler::Document::load(QString::fromUtf8(TESTDATADIR
"/unittestcases/Gday garçon - owner.pdf") );
doc = Poppler::Document::load( QString::fromUtf8(TESTDATADIR
"/unittestcases/PasswordEncrypted.pdf") );
}}}
'''Conclusion: tests could be as you wrote in comment:3, but LC_ALL fix is
only necessary if your locale is not already using utf8.'''
--
Ticket URL: <http://wiki.linuxfromscratch.org/blfs/ticket/6118#comment:6>
BLFS Trac <http://wiki.linuxfromscratch.org/blfs>
Beyond Linux From Scratch
--
http://lists.linuxfromscratch.org/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page