RE: Character encoding at the prompt

From: Yves Arrouye (yves@realnames.com)
Date: Thu Oct 25 2001 - 13:33:21 EDT


> But:
> >setenv LC_ALL en_US.UTF-8
> >env LC_ALL=it echo
> giovedì, 25 ottobre 2001, 11:45:24 EDT
>
> I could not understand why I get the display of the letter ì in the
> en_US.UTF-8 Locale. My understanding was that the date command was
> generating the message in the Italian locale (default encoding iso-8859-1)
> and as a result ì would be encoded as xEC. The display should be done in
> the
> en_US.UTF-8 Locale and be an invalid byte sequence.

I think you're making an improper assumption about the fact that your
*terminal* is in UTF-8 and would then complain. Unless your terminal has
explicit support for UTF-8 I do not think it will validate things. And it
apparently has not been started from a process that was already using UTF-8,
since you're issuing your setenv LC_ALL en_US.UTF-8 at the prompt. This is
only affecting subsequent commands (unless overridden, of course, as in your
next call), not the running process.
 
YA

PS: not to mention zsh(1) would be a better shell ;-) <just teasing>



This archive was generated by hypermail 2.1.2 : Thu Oct 25 2001 - 14:31:27 EDT