Skip Menu |

This queue is for tickets about the Text-PDF2XML CPAN distribution.

Report information
The Basics
Id: 128178
Status: open
Priority: 0/
Queue: Text-PDF2XML

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.3.1
Fixed in: (no value)



Subject: Failed test 'pdf2xml (LM-based merge)'
On a debian9 system I see the following test failure: ... # Failed test 'pdf2xml (LM-based merge)' # at t/10_pdf2xml.t line 37. # got: '' # expected: '1' # Failed test 'pdf2xml (wordlist)' # at t/10_pdf2xml.t line 45. # got: '' # expected: '1' # Looks like you failed 2 tests of 4. t/10_pdf2xml.t .. Dubious, test returned 2 (wstat 512, 0x200) Failed 2/4 subtests ...
On 2019-01-06 10:26:14, SREZIC wrote: Show quoted text
> On a debian9 system I see the following test failure: > > ... > # Failed test 'pdf2xml (LM-based merge)' > # at t/10_pdf2xml.t line 37. > # got: '' > # expected: '1' > > # Failed test 'pdf2xml (wordlist)' > # at t/10_pdf2xml.t line 45. > # got: '' > # expected: '1' > # Looks like you failed 2 tests of 4. > t/10_pdf2xml.t .. > Dubious, test returned 2 (wstat 512, 0x200) > Failed 2/4 subtests > ...
This could be locale-related. With a utf8 locale (e.g. LC_ALL=de_DE.UTF-8) it seems to pass. With a iso8859-1 or ascii locale (e.g. de_DE.ISO8859-1 or C) it fails.
On Sun Jan 06 10:28:17 2019, SREZIC wrote: Show quoted text
> On 2019-01-06 10:26:14, SREZIC wrote:
> > On a debian9 system I see the following test failure: > > > > ... > > # Failed test 'pdf2xml (LM-based merge)' > > # at t/10_pdf2xml.t line 37. > > # got: '' > > # expected: '1' > > > > # Failed test 'pdf2xml (wordlist)' > > # at t/10_pdf2xml.t line 45. > > # got: '' > > # expected: '1' > > # Looks like you failed 2 tests of 4. > > t/10_pdf2xml.t .. > > Dubious, test returned 2 (wstat 512, 0x200) > > Failed 2/4 subtests > > ...
> > This could be locale-related. With a utf8 locale (e.g. > LC_ALL=de_DE.UTF-8) it seems to pass. With a iso8859-1 or ascii locale > (e.g. de_DE.ISO8859-1 or C) it fails.
Any hints on how to solve that problem? I tried to read https://perldoc.perl.org/perllocale.html but I cannot find a solution that seem to work.
On 2019-01-06 16:10:29, TIEDEMANN wrote: Show quoted text
> On Sun Jan 06 10:28:17 2019, SREZIC wrote:
> > On 2019-01-06 10:26:14, SREZIC wrote:
> > > On a debian9 system I see the following test failure: > > > > > > ... > > > # Failed test 'pdf2xml (LM-based merge)' > > > # at t/10_pdf2xml.t line 37. > > > # got: '' > > > # expected: '1' > > > > > > # Failed test 'pdf2xml (wordlist)' > > > # at t/10_pdf2xml.t line 45. > > > # got: '' > > > # expected: '1' > > > # Looks like you failed 2 tests of 4. > > > t/10_pdf2xml.t .. > > > Dubious, test returned 2 (wstat 512, 0x200) > > > Failed 2/4 subtests > > > ...
> > > > This could be locale-related. With a utf8 locale (e.g. > > LC_ALL=de_DE.UTF-8) it seems to pass. With a iso8859-1 or ascii > > locale > > (e.g. de_DE.ISO8859-1 or C) it fails.
> > > Any hints on how to solve that problem? I tried to read > https://perldoc.perl.org/perllocale.html but I cannot find a solution > that seem to work.
I guess it's an external tool which depends on the locale, and this external tool is called with system() or similar functions. In this case a possible solution is: { local $ENV{LC_ALL} = 'en_US.UTF-8'; system(...); } But if there's no en_US.UTF-8 locale installed, then this won't help. Theoretically it's possible that there's another utf-8 locale available --- on Unix systems the command "locale -a" will show what is available. It's also possible that there's *no* utf-8 locale installed at all. I can imagine that this may be the case for very minimal installations with just the "C" locale.