X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.0 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: References: Date: Thu, 14 Jan 2010 20:31:00 +0000 Message-ID: <416096c61001141231x6941850ai187da38242229d98@mail.gmail.com> Subject: Re: Bag LANG setting? From: Andy Koppe To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 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 2010/1/14 Jason Pyeron : > When doing man grep it blurted out many <##> hex codes. If I unset LANG, LANGVAR I get extended ascii. I am using teraterm to connect via ssh. What's 'extended ascii'? You need to ensure that your terminal is set to the same character set as Cygwin. The second of your 'man grep' examples with the funny characters is due to using UTF-8 for Cygwin while the terminal is using ISO-8859-15 or similar. I don't know how you'd get it to produce the <##> hex codes in the first example. > LANG=en_US.iso885915 That's not a valid locale. Should be en_US.ISO-8859-15 > LANGVAR=en_US.UTF-8 What's LANGVAR? Cygwin won't care about it. > LC_CTYPE=en_US.UTF-8 This overrides the charset in your LANG setting above. Best just use LANG, unless you know what you're doing. > I cannot remember when the man output was last formatted correctly. Any advise on where to check next? > > $ uname -a > CYGWIN_NT-5.1 phoenix 1.7.0(0.212/5/3) 2009-08-20 10:56 i686 Cygwin Looks like you could do with an update. 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