Locale-Maketext-Lexicon fails "make test"

I’m one perl module away from being able to install rt 3.0.3.

Locale-Maketext-Lexicon, however, fails two tests in t/1-basic.t. #19,
Gettest - MO File, and #30, Multiple lexicons, fail.

Google has provided no clues. Any ideas welcome.

Should these tests preclude running “test install” anyway?

Thanks,

Joe McCarty

Locale-Maketext-Lexicon, however, fails two tests in t/1-basic.t. #19,
Gettest - MO File, and #30, Multiple lexicons, fail.

Can you please run the test manually:

perl -Mblib t/1-basic.t

in L::m::L’s directory and send me its output? Also, a dump of
your “perl -V” would be appreciated.

Should these tests preclude running “test install” anyway?

Not really, since when tests fail it possibly means RT may fail
on your system in an unpredictable way.

Thanks,
/Autrijus/

I am building on a PIII Intel box running RedHat 7.3. I am building in
parallel on a similar box with same OS at home, and my
Locale-Maketext-Lexicon tests passed. Some detail is different here at work.

Here is the output you requested:

[root@rt Locale-Maketext-Lexicon-0.26]# perl -Mblib t/1-basic.t
Using /usr/local/src/Locale-Maketext-Lexicon-0.26/blib
1…30
ok 1 - use base;
ok 2 - use Locale::Maketext::Lexicon;
ok 3 - no warnings on blank lines
ok 4 - Auto - get_handle
ok 5 - Auto - autofilling
ok 6 - Gettext - get_handle
ok 7 - Gettext - simple case
ok 8 - Gettext - complex case
ok 9 - Gettext - asterisk interpolation
ok 10 - Gettext - concatenated variables
ok 11 - Gettext - correct parens
ok 12 - Gettext - metadata
ok 13 - Gettext - correct parens
ok 14 - Gettext - multiline
ok 15 - Gettext - fuzzy entries are ignored
ok 16 - Gettext - get_handle on DATA again
ok 17 - Gettext - fuzzy entries are recognized with _use_fuzzy
ok 18 - Gettext - get_handle
not ok 19 - Gettext - MO File

Failed test (t/1-basic.t at line 116)

got: ‘’

expected: ‘³o¬O´ú¸Õ’

ok 20 - Tie - get_handle
ok 21 - Tie - simple case
ok 22 - Tie - complex case
ok 23 - Msgcat - get_handle
ok 24 - Msgcat - simple case
ok 25 - Msgcat - continued string
ok 26 - Msgcat - quote character
ok 27 - Msgcat - quote character + continued string
ok 28 - Multiple lexicons - get_handle
ok 29 - Multiple lexicons - first
not ok 30 - Multiple lexicons - second

Failed test (t/1-basic.t at line 175)

got: ‘’

expected: ‘³o¬O´ú¸Õ’

Looks like you failed 2 tests of 30.

[root@rt Locale-Maketext-Lexicon-0.26]# perl -v

This is perl, v5.6.1 built for i386-linux

Copyright 1987-2001, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using man perl' or perldoc perl’. If you have access to the
Internet, point your browser at http://www.perl.com/, the Perl Home Page.

ThanksOn Tuesday 01 July 2003 08:41 am, Autrijus Tang wrote:

On Mon, Jun 30, 2003 at 12:48:45PM -0700, Joe McCarty wrote:

Locale-Maketext-Lexicon, however, fails two tests in t/1-basic.t. #19,
Gettest - MO File, and #30, Multiple lexicons, fail.

Can you please run the test manually:

perl -Mblib t/1-basic.t

in L::m::L’s directory and send me its output? Also, a dump of
your “perl -V” would be appreciated.

Should these tests preclude running “test install” anyway?

Not really, since when tests fail it possibly means RT may fail
on your system in an unpredictable way.

Thanks,
/Autrijus/

I am building on a PIII Intel box running RedHat 7.3. I am building in
parallel on a similar box with same OS at home, and my
Locale-Maketext-Lexicon tests passed. Some detail is different here at work.

This turns out to be a bug introduced by Locale::Maketext 1.06,
which makes non-utf8 high-bit strings like “\xb3o\xacO\xb4\xfa\xb8\xd5”
fail miserably.

I have changed my test case to use all-utf8 to work around this test
and released is as 0.27:

http://aut.dyndns.org/dist/Locale-Maketext-Lexicon-0.27.tar.gz

Alternatively, applying this patch to lib/Locale/Maketext/Guts.pm worked
for me (but may break other people using utf8 on 5.6.1, so don’t apply
it just yet). Cc’ing Sean Burke to see if anything can be done for that.

Thanks,
/Autrijus/

— /home/autrijus/Locale-Maketext-1.06/lib/Locale/Maketext/Guts.pm Sat Jun 21 14:52:14 2003
+++ Maketext/Guts.pm Mon Jul 7 04:29:57 2003
@@ -12,7 +12,7 @@
*DEBUG = sub () {0} unless defined &DEBUG;
}

-use utf8;
+BEGIN { if ($] >= 5.008) { require utf8; “utf8”->import } }

sub _compile {

This big scary routine compiles an entry.