Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: proper UTF-8 support under OSX



On 2009-10-23 14:22:18 +0200, François Revol wrote:
> > Not necessarily. Unfortunately the locale names are platform
> > dependent (well, in particular under Linux), and the same locale
> > name can have a different charmap on different platforms.
> 
> That's what the LC_CTYPE env var is supposed to indicate, AFAIK.
> For ex,
> LC_LANG=fr_FR
> but
> LC_CTYPE=fr_FR.UTF-8

No. fr_FR.UTF-8 doesn't necessarily exist. For instance, under Maemo
Linux, one needs to use LC_CTYPE=fr_FR, which is UTF-8, but under most
Linux-based platforms, fr_FR is ISO-8859-1, so that the charmap is
incorrect after a SSH, unless one uses some tricks (I use a LC_CHARMAP
variable in order to update the LC_CTYPE from my .zshenv if need be).

-- 
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)



Messages sorted by: Reverse Date, Date, Thread, Author