Date: Fri, 25 Jul 1997 21:42:03 +0300 (EEST) From: Alexander Litvin <archer@lucky.net> To: Andrzej Bialecki <abial@korin.warman.org.pl> Cc: freebsd-hackers@freebsd.org Subject: Re: Nvi and locale Message-ID: <Pine.BSI.3.95.970725213502.9301A-100000@grape.carrier.kiev.ua> In-Reply-To: <Pine.NEB.3.95.970725111637.24260A-100000@korin.warman.org.pl>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 25 Jul 1997, Andrzej Bialecki wrote: > Hi! > > I can't get vi to properly display my national characters. As I read in > nvi docs, I should set my locale, so I did: > > setenv LANG C > setenv LC_CTYPE lt_LN.ISO-8859-1 <- from nvi docs (why ???) > > and it still prints all the special characters as \xf3 \xb6 and so on. > > What am I doing wrong? What I found is that setlocale in 2.2.x is not setting "partial" locale information when called as setlocale(LC_ALL,"") -- as it is called at the beginning of the most progs. E.g., I have "export LANG=ru_SU.KOI8-R", but I don't like to have dates displayed in Russian, so I setted also LC_TIME=ascii. But in such a case after setlocale(LC_ALL,"") I have all LC_xxxx set to C :-(, and nvi treats all that russian chars as non-printable. In 2.1.x that seems to work differently. > > > Sincerely yours, > > --- > Andrzej Bialecki FreeBSD: Turning PCs Into Workstations > <abial@warman.org.pl> http://www.freebsd.org > Research and Academic Network in Poland > -- Litvin Alexander No SIGNATURE available at this run-level
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSI.3.95.970725213502.9301A-100000>