From owner-freebsd-current@FreeBSD.ORG Thu Jun 9 15:37:26 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 29AC716A41C for ; Thu, 9 Jun 2005 15:37:26 +0000 (GMT) (envelope-from scottro@nyc.rr.com) Received: from mail.starlofashions.com (mail.starlofashions.com [12.44.50.125]) by mx1.FreeBSD.org (Postfix) with ESMTP id 66D3443D4C for ; Thu, 9 Jun 2005 15:37:23 +0000 (GMT) (envelope-from scottro@nyc.rr.com) Received: from uws1.starlofashions.com ([192.168.8.230]) by mail.starlofashions.com (8.9.3/8.9.3) with SMTP id LAA03714 for ; Thu, 9 Jun 2005 11:37:22 -0400 Received: by uws1.starlofashions.com (sSMTP sendmail emulation); Thu, 9 Jun 2005 11:36:52 -0400 Date: Thu, 9 Jun 2005 11:36:52 -0400 From: Scott Robbins To: freebsd-current@freebsd.org Message-ID: <20050609153652.GB602@uws1.starlofashions.com> Mail-Followup-To: freebsd-current@freebsd.org References: <42A85300.000005.24475@tide.yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; x-action=pgp-signed Content-Disposition: inline In-Reply-To: <42A85300.000005.24475@tide.yandex.ru> User-Agent: Mutt/1.5.9i Subject: Re: locale problems? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jun 2005 15:37:26 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thu, Jun 09, 2005 at 06:32:32PM +0400, Polakov Alexander wrote: > I'm getting errors like "aterm: Cannot set locale", when I run aterm, and like this "(gedit:803): Gtk-WARNING **: Locale not supported by C library. Using the fallback 'C' locale." when I run gedit from terminal. And I can not do any input in russian in non-gtk2 (plain X) programs and in my user's console. It's OK in root's console. > I have: FreeBSD darkstar 6.0-CURRENT FreeBSD 6.0-CURRENT #0: Tue Jun 7 20:16:06 MSD 2005 root@darkstar:/usr/obj/usr/src/sys/PSL2 i386 > LANG=ru_RU.KOI8-R > Locale is set by user's class russian. > Maybe some additional info? Everything was fine when I used 5.4-STABLE. > Alexander Polakov Yes, this happens on an upgrade. I cover it on a page I have about Japanese in *nix at http://home.nyc.rr.com/computertaijutsu/jpninpt.html The safest solution (and recommended by the gentleman who committed the change to LC_CTYPE is to copy an old /usr/share/local/ somewhere and set the environment variable PATH_LOCALE to point to it. The risky way (though I haven't been bitten by it on a test box) is to add at the top of libmap.conf libc.so.5 libc.so.6 The most tedious way is to do a portupgrade -f of just about everything that has any remote connection with your use of Russian. I did that on one box that only had a few programs, but on my main workstation, which has about 200, I gave up. :) (The way to tell if a program needs to be forcefully upgraded is to do ldd `which perl` (Substituting perl with the program name) If one of the answers is libc.so.5 then that program has to be upgraded. You should start with perl, as the first one.) HTH - -- Scott Robbins GPG KeyID EB3467D6 ( 1B848 077D 66F6 9DB0 FDC2 A409 FA54 D575 EB34 67D6) gpg --keyserver pgp.mit.edu --recv-keys EB3467D6 Buffy: Could I be seeing Billy's asteroid body? Giles: Astral body, and I don't know. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFCqGIU+lTVdes0Z9YRApPmAKCoYQbpMVbeDrY4R1g0Fid8RegLHACfVngO PSw1YPZnb24I6DS8k4ygvvQ= =3L57 -----END PGP SIGNATURE-----