in reply to Standard handles inherited from a utf-8 enabled shell
No. The "utf-8 enabled" is a property of the terminal, not of the shell. Perl isn't aware of it, so if you do something like
perl -E 'say chr(255)'|hexdump -C 00000000 ff 0a |..|
the output encoding is Latin-1 (even if the locale is something with UTF-8).
Note that this changes for characters with codepoint > 255. Those can't be encoded in Latin-1, so UTF-8 is used for the whole string (and you get a "wide character" warning).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Standard handles inherited from a utf-8 enabled shell
by BrowserUk (Patriarch) on Mar 21, 2012 at 18:05 UTC | |
by moritz (Cardinal) on Mar 21, 2012 at 18:18 UTC | |
by BrowserUk (Patriarch) on Mar 21, 2012 at 18:54 UTC | |
by moritz (Cardinal) on Mar 21, 2012 at 19:02 UTC | |
by BrowserUk (Patriarch) on Mar 21, 2012 at 19:24 UTC | |
|