delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/02/20/21:18:55

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.5 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: <416096c61002200423h355344cbn8d2b3e7979b120c3@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> <416096c61002200423h355344cbn8d2b3e7979b120c3 AT mail DOT gmail DOT com>
Date: Sun, 21 Feb 2010 03:18:42 +0100
Message-ID: <9948385e1002201818v26ab52echd4ef02b03718a568@mail.gmail.com>
Subject: Re: mintty - char encoding problems
From: =?UTF-8?Q?David_Bala=C5=BEic?= <xerces9 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

On 20 February 2010 13:23, Andy Koppe <andy DOT koppe AT gmail DOT com> wrote:
> 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 defa=
ult.
>>>
>>> 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.

As I already mentioned, it is a fresh cygwin install.
There is alreadt an old, pre-1.7 cygwin setup, but according to post
here, it should not matter.

And since the problem is triggered by a simple change in the system
prefs, anyone onterested can try it ;-)

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