[rt-users] Locale-Maketext-Lexicon fails "make test"

Autrijus Tang autrijus at autrijus.org
Mon Jul 7 07:56:15 EDT 2003


On Wed, Jul 02, 2003 at 01:01:01PM -0700, Joe McCarty wrote:
> 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20030707/844dc265/attachment.sig>


More information about the rt-users mailing list