Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
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
Message-ID: <40C3621C.9080203@athensgroup.com>
Date: Sun, 06 Jun 2004 13:27:40 -0500
From: James Garrison <jhg@athensgroup.com>
Organization: Athens Group, Inc.
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: rxvt, ssh and utf8 - partial success
References: <40C09A9B.5060707@athensgroup.com> <40C0AF05.DBA983C@dessent.net> <20040605124405.GA2352@ata.cs.hun.edu.tr> <40C2620F.9010009@athensgroup.com> <40C27FC5.1080700@athensgroup.com> <20040606105326.GA3589@ata.cs.hun.edu.tr>
In-Reply-To: <20040606105326.GA3589@ata.cs.hun.edu.tr>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

Baurjan Ismagulov wrote:

> Hello, James,
> 
> On Sat, Jun 05, 2004 at 09:21:57PM -0500, James Garrison wrote:
[snip]
> 
> About ascii instead of Unicode... How do you conclude that the program
> (which one?) was sending Unicode sequences before using rxvt-cygwin (=>
> what is your locale?).

The program is redhat-switch-mail-nox.  With TERM=rxvt I get
3-byte sequences for box-drawing characters.  I piped stdout
to a file and then examined it with od, and was able to
resolve the 3-byte sequences into valid UTF8 encodings.
Looking in a unicode font with Windows Character Map showed
that these unicode sequences were box-drawing characters.
Switch to TERM=rxvt-cygwin (after putting a copy of the
rxvt-cygwin terminfo file on the linux system) and voila,
single-byte hyphens/bars/plus-signs instead.

The locale is en_US.UTF-8.  Here are some interesting results:

With LANG=en_US.UTF-8 and TERM=rxvt-cygwin
    redhat-switch-mail-nox: corner="+", horizontal="-", vertical="|"
    man terminfo:  UTF-8 quotes

With LANG=en_US (no UTF-8) and TERM=rxvt-cygwin
    redhat-switch-mail-nox: corner=">", horizontal="^", vertical="|"
    man terminfo:  ` and '

Clearly the locale and TERM settings are interacting, but I don't know
enough about them to deduce any rules.  Looks like the simplest
solution is just to switch to en_US locale unless I really need
Unicode for something.

-- 
James Garrison                                Athens Group, Inc.
mailto:jhg@athensgroup.com                    5608 Parkcrest Dr
http://www.athensgroup.com                    Austin, TX 78731
PGP: RSA=0x92E90A3B DH/DSS=0x498D331C         (512) 345-0600 x150


--
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/

