in reply to Re^5: utf8 "\xB7" does not map to Unicode at /usr/local/bin/бибс/об‰ line 112.
in thread utf8 "\xB7" does not map to Unicode at /usr/local/bin/бибс/об‰ line 112.

Hello. Concerning the output on mistakes in Russian.

I put to a script:

use utf8::all; binmode STDOUT, 'utf8'; binmode STDERR, ":encoding(UTF-8)"; print 5

-- to produce error because of absence of ; after print. PERL gave me on running:

Can't modify constant item in scalar assignment at /япио/1.pl line 5, near "';"

So, the binmode directives do not help.

Thank you for your answers.

  • Comment on Re^6: utf8 "\xB7" does not map to Unicode at /usr/local/bin/бибс/об‰ line 112.
  • Download Code

Replies are listed 'Best First'.
Re^7: utf8 "\xB7" does not map to Unicode at /usr/local/bin/бибс/об‰ line 112.
by choroba (Cardinal) on May 06, 2016 at 13:13 UTC
    Your script runs ok for me, Russian or not. I don't see any assignment there. Haven't you omitted the last line when pasting here?

    I tried to create a file with non-Latin1 name with a syntax error, Perl seems to report the path correctly in the error message even without any unicode related settings. What's your OS, locale, terminal settings?

    ($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,