X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: <4AAA2EE8.4070209@fmail.co.uk> References: <1252601151 DOT 20705 DOT ezmlm AT cygwin DOT com> <4AAA2EE8 DOT 4070209 AT fmail DOT co DOT uk> Date: Fri, 11 Sep 2009 19:56:21 +0100 Message-ID: <416096c60909111156s497eff82y42ac6e0e234b4efc@mail.gmail.com> Subject: Re: cygwin Digest 10 Sep 2009 16:45:51 -0000 Issue 6623 From: Andy Koppe To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 2009/9/11 Kit Johnson: > I've just upgraded to the beta version (1.7.0). > This is now in my cygwin.bat file (definitely > for the correct, beta, installation): > @echo off > > C: > chdir C:\cyg\bin > set LANG=3Dth_TH.UTF-8 > bash --login -i > > And these lines in my .bashrc file (also definitely the correct > installation): > > alias ls=3D'ls -hF --color=3Dtty --show-control-chars' > classify files in colour > export LANG=3D"th_TH.UTF-8" No need to set LANG again here, because it gets passed down from cygwin.bat anyway. > And yet it's still not listing unicode characters properly. =C2=A0Now tha= t I've > upgraded, it's not giving any warning messages ("ls: cannot access > ???????????????? : No such file or directory.") > when running 'ls' in a folder with Thai filenames. =C2=A0It's just listing > ????.doc or whatever. Looks like it's a limitation in the Windows console's font support actually, because this doesn't work with 'dir' in cmd.exe either. I tried listing a Thai filename with all of the three font choices available in the 'Command Prompt Properties' on my system, all with much the same results you reported. (The only variation was in the glyph representing unsupported characters.) However, since presumably you're using a Thai version of Windows, you might have more success with trying different fonts. If not, you should try the 'mintty' terminal instead of the standard Cygwin console. This definitely does support Thai characters and is able to use a greater range of fonts than the console. The stable version 0.4.4 can be installed through Cygwin's setup.exe, but version 0.5 makes it much easier to set up the locale and character set. Choose them on the 'Text' pane of its options dialog, and the LANG variable will be set accordingly. Mintty 0.5-beta2 is available from http://mintty.googlecode.com. Andy -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple