X-Spam-Check-By: sourceware.org Message-ID: <467A9FAE.80606@w3china.cn> Date: Thu, 21 Jun 2007 23:56:30 +0800 From: =?GB2312?B?wt6x8w==?= User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: A problem about Cygwin References: <46617775 DOT 2090504 AT w3china DOT cn> <4677C92E DOT 9010801 AT byu DOT net> In-Reply-To: <4677C92E.9010801@byu.net> Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 8bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Note-from-DJ: This may be spam Eric Blake дµÀ: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > http://cygwin.com/acronyms/#PPIOSPE - redirecting to the list. > > According to ÂÞ±ó on 6/2/2007 7:58 AM: > >> Dear Mr. Eric Blake, >> >> I am a Chinese student and I am using Cygwin. I have a problem when I >> use the command 'ls -l'. >> >> I have uncommented the ~/.inputrc: >> # Allow 8-bit input/output >> set meta-flag on >> set convert-meta off >> set input-meta on >> set output-meta on >> set completion-ignore-case on >> >> and added follows into the ~/.bashrc: >> export LC_ALL=zh_CN.GBK >> export LANG=zh_CN.GBK >> >> alias ls='/bin/ls -hF --show-control-chars --color=tty' >> >> Then, when I use 'ls', Cygwin can display the Chinese character >> correctly. But if I use 'ls -l', it appears some error like this: >> $ ll >> drwx------+ 3 luobin None 0 May 16 22:18 runtime-н¨ÅäÖÃ/ >> drwx------+ 21 ???????? ???????? 0 Jun 1 18:56 src/ >> >> The appendix is the screen print. I expect you can help me. Thank you! >> > > I'm removing the screen capture, but the difference was that the group and > user names showed only "?" while filenames showed actual Chinese > characters (rather than "?", as they were flattened to in the above > display). Do those user and group names actually contain Chinese > characters, or is it just a case of your /etc/passwd and /etc/groups being > out-of-date so that cygwin really does think they are "????????"? With a > quick glance at the ls source code, ls doesn't do anything special to > non-ascii characters in group and user names. So maybe you need to read > up on the use of mkgroups and mkpasswd. > > - -- > Don't work too hard, make some time for fun as well! > > Eric Blake ebb9 AT byu DOT net > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.5 (Cygwin) > Comment: Public key at home.comcast.net/~ericblake/eblake.gpg > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFGd8kt84KuGfSFAYARAsJJAJ9m4g6zmT/OQDQyk7ddpdGLVVpIlgCgwK+d > lBbQpf43nYrcmRCtSwKVavM= > =emuE > -----END PGP SIGNATURE----- > > Dear Mr. Blake, Thank you for your letter. How can I know whether my /etc/passwd and /etc/groups are out of date? I have run the commands: 'mkpasswd -l > /etc/passwd' and 'mkgroup -l > /etc/group'. But the problem still exists. Bin Luo -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/