X-Recipient: archive-cygwin@delorie.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: <CBF40C8AC4CA41E0BBC664570D4F07C8@phoenix>
References: <CBF40C8AC4CA41E0BBC664570D4F07C8@phoenix>
Date: Thu, 14 Jan 2010 20:31:00 +0000
Message-ID: <416096c61001141231x6941850ai187da38242229d98@mail.gmail.com>
Subject: Re: Bag LANG setting?
From: Andy Koppe <andy.koppe@gmail.com>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=UTF-8
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

2010/1/14 Jason Pyeron <jpyeron@pdinc.us>:
> 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

