in reply to Test::* vs. utf8 pragma

So, I've got two 5.6.1 installs with the same Locale::Maketext and the Test::Simple. On fails with use utf8, on passes with use utf8.

I don't know where to begin to identify the problem.

In general, you start by examining those two 5.6.1 installs to see what's different between them (You examine %ENV, you examine %INC, you examine `perl -V`).

On the other hand, Locale::MakeText itself uses utf8, so you need to use utf8 regardless of the version of perl, especially if you're going to embed utf8 in source.

update: I'm betting you just got confused whilst turning utf8 on/off, and you compared one perl5.6.1 with utf8 on, and the other with utf8 off.

MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
** The third rule of perl club is a statement of fact: pod is sexy.

Replies are listed 'Best First'.
Re^2: Test::* vs. utf8 pragma
by jk2addict (Chaplain) on Jan 13, 2005 at 14:21 UTC

    Well, I'm 99.99% sure I wasn't confused. Basically, I developed under 5.6.1/5.8.4 on the laptop. 5.8.4 passed the test with 'use utf8', and 5.6.1 failed it with utf8 loaded until I removed it; then 5.6.1 passed without it.

    I checked the source into SVN and checked it out on the the desktop upstairs. 5.8.4 passed with utf8. 5.6.1 on the desktop FAILED the test without use utf8. So, I put utf8 back in for 5.6.1 and it too passed. I checked in to SVN and went back downstairs to the laptop.

    I checkout out the SVN on the laptop. 5.6.1 failed with utf8 loaded, and 5.8.4 passed. I removed utf8 from that test and 5.6.1 now passed. Rinse, Lather, Repeat.

    Thus far, these things are the same between the laptop and desktop: XP SP2, ActiveState Perl 5.6.1.630, Class::DBI, DBI, Error, Locale::Maketest, I18N::LangTags, and Win32::Locale, Test::Simple.

    This is why the plea for help. Nothing is standing out as a reason why use utf8 make string compares fail from one install to the next. Should I even be using utf8 in the test, or just in the language files that actually have UTF8 text in the %Lexicon source?