On Tuesday, Jan 28, 2003, at 13:33 Europe/London, Matthew Smith wrote:

I have just upgraded to perl 5.8.0, It used to work ok in perl 5.6.1

Any ideas why the output of these lines should be different in XPathScript?

<%=findvalue('article/title'); %>

<% my $silly = findvalue('article/title'); print "$silly"; %>

The first line mangles all the utf-8 characters, the second line produces the utf-8 characters ok - they display properly in my browser and the output is utf-8.
Yitzchak Scott-Thoennes (via RT) wrote:
>
> I don't have the modules to try this out, but if this is a case of
> overloaded stringify, patch 17864 may fix it.  Before this patch, utf8
> flag was only preserved for ops that called sv_copypv.  After, even
> sv_2pv_flags/SvPV users can see the utf8 flag, but only *after* the
> sv_2pv_flags call.  We really need to do an audit of SvUTF8 calls to
> check for correct calling order for overloaded stringify.
>
> (17864 is integrated into the 5.8 branch as part of 18080.)
>
> Matt, if possible, could you try the pre-5.8.1 perl snapshot at:
> http:[EMAIL PROTECTED]
>

Problem solved!


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to