delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/02/20/07:24:50

X-Recipient: archive-cygwin AT delorie DOT com
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
MIME-Version: 1.0
In-Reply-To: <9948385e1002191514j192e6a51r30197a2acb81abbd@mail.gmail.com>
References: <9948385e1002191139l31043acayec402626ded2368c AT mail DOT gmail DOT com> <416096c61002191200g76a10a7eu3f507901bb35e617 AT mail DOT gmail DOT com> <9948385e1002191508p60b050bdnbac5fbddbdbe906a AT mail DOT gmail DOT com> <9948385e1002191514j192e6a51r30197a2acb81abbd AT mail DOT gmail DOT com>
Date: Sat, 20 Feb 2010 12:23:04 +0000
Message-ID: <416096c61002200423h355344cbn8d2b3e7979b120c3@mail.gmail.com>
Subject: Re: mintty - char encoding problems
From: Andy Koppe <andy DOT koppe AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

David Bala=C5=BEic:
>>> A mismatch of Cygwin's charset and mintty's charset, probably. What
>>> versions of Cygwin and mintty are you using? What are the values of
>>> LC_ALL, LC_CTYPE and LANG? Is anything set in the Charset (or
>>> Codepage) field on the Text pane of mintty's options?
>>
>> =C2=A0Cygwin DLL version info:
>> =C2=A0 =C2=A0 =C2=A0 =C2=A0DLL version: 1.7.1
>> mintty =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 0.5.7-1
>>
>> $LANG is SL , =C2=A0LC_* are undefined
>>
>> The mintty Text settings are empty.

Right. As Thomas already pointed out, "SL" is an invalid locale
setting. In this case, Cygwin programs use the "C" locale, which in
1.7.1. implies UTF-8. Mintty, on the other hand, falls back to the
system's "ANSI" codepage, with less than pretty results.

Not quite a bug, since you can't expect anything non-ASCII to work
correctly with an invalid locale setting, but nevertheless I've now
changed mintty to fall back to UTF-8.


>> As mentioned, this is a fresh install and 99,9% of settings are at defau=
lt.
>>
>> Windows Regional settings are:
>> Standards and formats : Slovenian
>> Location: United States
>> Input Language/Keyborad layout: US English
>>
>
> Aha, the other account has:
> Standards and formats : English (US)
>
> I changed it on this account too and now it works.
>
> $LANG is now C.UTF-8

I'm puzzled by that, because the standards and formats setting
shouldn't have any effect on LANG, at least as far as mintty and
Cygwin are concerned. Any idea how it might have got set to "SL"?

In any case, the easy way to set locale and charset in mintty is via
the Text options. This will also set up LANG accordingly in newly
started sessions.

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019