On Mo. 03. Sep. 2007, 21:15:46, JSIRACUSA wrote:
I have the same issue.
Show quoted text> On Mon Sep 03 09:46:26 2007, TKREMER wrote:
> What version of perl are you using? In 5.8.8, the docs say:
>
> "'use utf8' still needed to enable UTF-8/UTF-EBCDIC in scripts As a
> compatibility measure, the 'use utf8' pragma must be explicitly
included
Show quoted text> to enable recognition of UTF-8 in the Perl scripts themselves (in
string
Show quoted text> or regular expression literals, or in identifier names) on
ASCII-based
Show quoted text> machines or to recognize UTF- EBCDIC on EBCDIC-based machines.
These
Show quoted text> are the only times when an explicit 'use utf8' is needed."
>
The Rose Localizer reads text strings from perl scripts below the
__DATA__ section. These files are saved in utf8 and therefore you
_must_ 'use utf8'.
Let me give you an example:
#!/usr/bin/perl
$text = "blödsinn";
print length $text, "\n";
Save this as an utf8 encoded file, the output is: 9 (!)
#!/usr/bin/perl
use utf8;
$text = "blödsinn";
print length $text, "\n";
Output: 8
The difference is, that $text is now tagged as utf8.
This issue is confusing because if u print $text it's possible the
first example shows "correct" output on machines with wrong unicode
setup ...
Show quoted text>
> (Also keep in mind that, while I welcome bug reports, localization
is
Show quoted text> not yet a public feature.)
That's no reason not to fix it :P