delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/07/08/11:32:43

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:date:message-id:subject:from:to
:content-type; q=dns; s=default; b=CXe65QeW/8EAKCUGeF21nLBqR0hPg
6UR5/6jGJMjM0SudoGg1YrIhdG7wzHDIdEXPRE8MXC9nGgiyaNwO4xopCJy4HAbI
iZPcM3RZvft481rlSKrYXnCHYwnBCrDygHzzVEc4rHIEtk8md1viHZKisYWncNo6
p1/sPXkEUeibZ4=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:date:message-id:subject:from:to
:content-type; s=default; bh=gR5D2TQ2TQo3dvZF6IdU2gmAG3Y=; b=c9c
RFd+9sU/r6e+SLDpnm17dzw14JM+oqI4L1T+LMvOxT5B0bIS9PM8+5dzl4VHCCen
pEqoyG9SRlgJlXpHfNToUT+FurfQjdgEFrCOW4/Cp6HVk6fdx/vb728N3M8qYxNH
J1FS/Pwl3rx/KUH0o7jMg1FY/zzGOKBRg5Fim/wc=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-qa0-f50.google.com
MIME-Version: 1.0
X-Received: by 10.224.26.18 with SMTP id b18mr59868379qac.20.1404833535032; Tue, 08 Jul 2014 08:32:15 -0700 (PDT)
Date: Tue, 8 Jul 2014 17:32:14 +0200
Message-ID: <CA+7conmkqQK6XXL+P9wwvs_ErGN+shenq_aL4dC1Kvj=VUM_ug@mail.gmail.com>
Subject: Subject: Re: setting character set in mintty
From: Pawel Jasinski <pawel DOT jasinski AT gmail DOT com>
To: cygwin <cygwin AT cygwin DOT com>

>> The way I understand it, mintty sets the LANG variable according to
>> user settings.
>> Would it make sense for mintty to invoke "cmd /c chcp <selected>"
>> (SetConsoleOutputCP)?

>mintty does not use the console at all.  A chcp call doesn't make
>any sense.

Sorry for asking stupid question. My knowledge of cygwin internals lacks.
However, I can see that for every mintty window (and bash) I get a
conhost process running. I assume that it is where the character
setting is stored for non-cygwin processes started from bash.
Again, it is my naive believe, that somewhere there maybe a convenient
place to call SetConsoleOutputCP with argument matching content of the
LANG environment variable.


--pawel

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