Joe McMahon via RT wrote:
> > Same program in the debugger:
> > % perl -de '
> > $_ = "\x{100}";
> > s/[\x{100}]/o/;
> > print "$_\n";
> > '
> > 
> > Loading DB routines from perl5db.pl version 1.19
> > Editor support available.
> > 
> > Enter h or `h h' for help, or `man perldebug' for more help.
> > 
> > main::(-e:2):   $_ = "\x{100}";
> >   DB<1> c
> > Wide character in print at -e line 4.
> > ?
> 
> This seems to fix the problem; it just adds ":utf8" to the debugger's
> output filehandle. This is a fix vs. the 5.8.6 debugger source (don't
> have blead installed at the moment). Unable to tell if this is going to
> cause problems for people who actually dump non-Unicode binary to their
> debugger output...

Untested idea: you can use ${^UTF8LOCALE} to see if the user locale supports
utf-8 (works on 5.8.7 and above). Sensible ?

Reply via email to