Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Message-ID: <40C3621C.9080203@athensgroup.com> Date: Sun, 06 Jun 2004 13:27:40 -0500 From: James Garrison 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 AT cygwin DOT com Subject: Re: rxvt, ssh and utf8 - partial success References: <40C09A9B DOT 5060707 AT athensgroup DOT com> <40C0AF05 DOT DBA983C AT dessent DOT net> <20040605124405 DOT GA2352 AT ata DOT cs DOT hun DOT edu DOT tr> <40C2620F DOT 9010009 AT athensgroup DOT com> <40C27FC5 DOT 1080700 AT athensgroup DOT com> <20040606105326 DOT GA3589 AT ata DOT cs DOT hun DOT edu DOT 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 AT athensgroup DOT 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/