I
Ivan Shmakov
Do I understand it correctly that a proper way to configure the
"standard IO" filehandles to use the encoding specified by the
locale currently in effect would be like:
## NB: use locale; affects collation, etc., not IO handles
use Encode::Locale; # for :encoding(locale)
binmode ($_, ":encoding(locale)")
foreach (\*STDERR, \*STDIN, \*STDOUT);
Doesn't it warrant a pragma, BTW?
TIA.
PS. FWIW, print ("\N{U+0432}\N{U+0444}"); now appears to work correctly
with at least two different encodings. And so does warn ().
Also to note is that there seem to be configurations which
result in non-English, -- and non-ASCII, -- $! texts...
"standard IO" filehandles to use the encoding specified by the
locale currently in effect would be like:
## NB: use locale; affects collation, etc., not IO handles
use Encode::Locale; # for :encoding(locale)
binmode ($_, ":encoding(locale)")
foreach (\*STDERR, \*STDIN, \*STDOUT);
Doesn't it warrant a pragma, BTW?
TIA.
PS. FWIW, print ("\N{U+0432}\N{U+0444}"); now appears to work correctly
with at least two different encodings. And so does warn ().
Also to note is that there seem to be configurations which
result in non-English, -- and non-ASCII, -- $! texts...