[Python-ideas] RFC: PEP 540 version 3 (Add a new UTF-8 mode)

Oleg Broytman phd at phdru.name
Thu Jan 12 19:51:05 EST 2017


On Thu, Jan 12, 2017 at 06:14:58PM -0500, Random832 <random832 at fastmail.com> wrote:
> On Thu, Jan 12, 2017, at 13:13, Oleg Broytman wrote:
> >    Works for me as expected:
> > 
> > $ echo $LC_CTYPE
> > ru_RU.KOI8-R
> > 
> > $ LC_MESSAGES=ru_RU.KOI8-R mc
> > 
> >    mc speaks to me in Russian...
> > 
> > $ LC_MESSAGES=C mc
> 
> I meant LC_CTYPE=C. Or, for that matter, UTF-8 etc.

$ LC_CTYPE=C LC_MESSAGES=ru_RU.KOI8-R mc

   Brouhaha! mc tries to talk in Russian but converts Russian texts to
ascii. Everything is "?????" :-D

$ echo $LC_CTYPE
ru_RU.UTF-8
$ LC_MESSAGES=ru_RU.UTF-8 mc

   Russian in utf-8, no problem. What did you expect? I think I did it not
the way you wanted.

Oleg.
-- 
     Oleg Broytman            http://phdru.name/            phd at phdru.name
           Programmers don't die, they just GOSUB without RETURN.


More information about the Python-ideas mailing list