From owner-freebsd-stable@FreeBSD.ORG Wed Jul 20 10:49:34 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 484D016A41F for ; Wed, 20 Jul 2005 10:49:34 +0000 (GMT) (envelope-from loader@freebsdmall.com) Received: from mail.freebsdmall.com (ns1.freebsdmall.com [69.50.233.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0437E43D45 for ; Wed, 20 Jul 2005 10:49:34 +0000 (GMT) (envelope-from loader@freebsdmall.com) Received: by mail.freebsdmall.com (Postfix, from userid 2136) id E08E41CE55; Wed, 20 Jul 2005 03:49:33 -0700 (PDT) X-Mailer: emacs 22.0.50.1 (via feedmail 8 I) To: "Li Ruijiang" References: From: loader X-GPG-Public-Key: http://www.freebsdmall.com/~loader/loader.asc X-GPG-Key-ID: 1024D/0277E075 X-GPG-Key-Fingerprint: F8A0 A354 5D97 B175 7FC9 15DC 0771 07CF 0277 E075 Date: Wed, 20 Jul 2005 19:07:54 +0000 In-Reply-To: (Li Ruijiang's message of "Fri, 15 Jul 2005 23:19:53 +0800") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-stable@freebsd.org Subject: Re: HELP --a question on LOCALE X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Jul 2005 10:49:34 -0000 "Li Ruijiang" writes: > I am a chinese user,and today I upgraded my FreeBSD system from 5.3 > release to 6.0 > all is successful except that I can not input chinese. > The XIM needs two environment variables:LANG and LC_ALL > so I export them to zh_CN.GBK in my .xinitrc file > when the X was started I tested it using "echo $LANG"and "echo > $LC_ALL".I got the right response. > > But when when I type "locale", I got a response like this: > LANG=zh_CN.GBK > LC_CTYPE="C" > LC_COLLATE="C" > LC_TIME="C" > LC_NUMERIC="C" > LC_MONETARY="C" > LC_MESSAGES="C" > LC_ALL=zh_CN.GBK > > > So LC_CTYPE and LC_* were not modified > > then I "export LC_CTYPE=zh_CN.GBK" > when I "echo $LC_CTYPE" it said "zh_CN.GBK" > when I "locale" the result did not change at all. > > I have installed "localedata-5.4" and set PATH_LOCALE > when I "locale -a" > the result contains zh_CN.GBK > > What should I do??? > Thank you very much. > I'm running 6.0-BETA1 and recompiled all the ports installed in system. I just ran setenv LC_CTYPE zh_CN.GB2312 setenv XMODIFIERS @im=fcitx fcitx & and ran some applications like emacs, mlterm, aterm... they all worked for me. Then I tried to set the LC_CTYPE to zh_CN.GBK, the XIM still working. Only the characters can't be displayed correct, since I only have the X core fonts installed. And I didn't installed misc/localedata. Maybe you can have a try to recompile the applications which you want to use XIM with? Regards, loader