From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20671 invoked by alias); 10 Sep 2009 16:45:43 -0000 Received: (qmail 20657 invoked by uid 22791); 10 Sep 2009 16:45:41 -0000 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 Received: from mail-qy0-f187.google.com (HELO mail-qy0-f187.google.com) (209.85.221.187) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 10 Sep 2009 16:45:35 +0000 Received: by qyk17 with SMTP id 17so289692qyk.2 for ; Thu, 10 Sep 2009 09:45:33 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.93.41 with SMTP id t41mr953302qcm.81.1252601131951; Thu, 10 Sep 2009 09:45:31 -0700 (PDT) In-Reply-To: <4AA8DAA3.8060508@fmail.co.uk> References: <4AA8DAA3.8060508@fmail.co.uk> Date: Thu, 10 Sep 2009 16:45:00 -0000 Message-ID: <416096c60909100945x796ee335n2130b15359582b75@mail.gmail.com> Subject: Re: Help needed getting unicode working in bash From: Andy Koppe To: cygwin@cygwin.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2009-09/txt/msg00230.txt.bz2 2009/9/10 Kit Johnson: > Thanks so much for taking the time to help. =C2=A0This is the first time = I've > used a mailing list so I hope I've replied correctly. Yep, except you replied to me instead of the list. ;) > I understand charactersets and locales better now. =C2=A0I followed your > recommendations plus those of the cygwin FAQ and internationalistation > pages. > > However I still get > "ls: cannot access ?????????.xls: no such file or directory" > instead of Thai characters when I type 'ls' in bash. > I've researched the ISO 639-1 and ISO 3166 codes for my location, and wou= ld > like to use UTF-8. > > Here are the contents of my cygwin.bat file: > @echo off > > C: > chdir C:\cygwin\bin > set LC_CTYPE=3Dth_TH.UTF-8 > bash --login -i Hmm, that should do the job. Are you running the Cygwin 1.7 beta? 1.5 doesn't support locales. ('uname -r' will tell you.) > in my .bashrc file: > export LANG=3D"th_TH.UTF-8" You could set LANG instead of LC_CTYPE in cygwin.bat. The difference is that setting LANG affects all locale-specific behaviours, e.g. it will enable Thai user interfaces and messages in programs that have translations for it. LC_CTYPE only sets the encoding and a couple of other things regarding character processing. If LANG is set, you don't need LC_CTYPE. > export OUTPUT_CHARSET=3D"UTF-8" I don't know whether anything actually uses this. You'd probably be fine without it. 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