Re: More on WMK lockup...

Denis Barbier <[email protected]> Mon, 3 Nov 2003 22:23:05 +0100
Newsgroups gmane.comp.web.wml
Message-ID <[email protected]>
On Mon, Nov 03, 2003 at 11:48:53AM +1100, Darryl Smith wrote:
> Denis
> 
> Many thanks for that help. I tried that script, and got EXACTLY THE SAME as
> you got. Then I logged out in another window, and logged back in. WMK Worked
> perfectly. Suggest there is something outside the script you sent.
> 
> Looks like UTF-8 issues. YUK. 

Well, my test was somewhat stupid, there are issues with I/O under UTF-8 
locales; you can try instead
  open (P, "< .wmkrc");
  while (<P>) {
    chomp;
    s|^([^\s"']+)(.*)$|$r .= $1, $2|e;
    print ("!$_!\n");
  }
  close(P);
and see how it breaks with a UTF-8 locale ;)
As I said weeks ago, there is no way to my knowledge to write Perl code
which works with Perl < 5.8 and Perl>=5.8.0, with UTF-8 and non UTF-8
locales.
Fortunately Perl 5.8.1 does a step back and provides a smoother
transition, old code (as currently in wml) should work without change
unless 'use locale' is called, in which case it switches to Perl 5.8.0
behaviour.
But if you decide to upgrade to Perl 5.8.1, take care that a subtle bug
broke binary compatibility for programs embedding Perl interpreters,
like ePerl.  It will be fixed in 5.8.2, which shall be binary compatible
with 5.8.0 and 5.8.1.  Recompiling ePerl is thus needed.

-- 
Denis Barbier
WML Maintainer
_____________________________________________________________________
Website META Language (WML)                         http://thewml.org
User Support Mailing List                        [email protected]
Automated List Manager                            [email protected]