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:date:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=A14YA+c+tXwbtPVE J1ZK13IbJMj9ovT7m/rF0t5hkROtDM1VBlg1CLFyvY6pw6kPNMVEM6quBpc1dJNY lX89u9JuBgaXbv4i3swknTE1zctwYjXoAt4bHBFd7O5qDPOjuH9ZtAsYrWp9Ug7w oxoPj4qkHK38ELtShfrfezGpM9I= 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:date:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; s=default; bh=XPztd2E23mHhspyrZvzQT8 PW+30=; b=kt2LRC9oj7CM8mfhZNAeja4bVCjnTwGmyEknR+rXD/c30ULIAQ4Jvk BfrcLPRcDk2uC76uAqZZ7MNrQZOVUrdeB1ERzPouaK89qc38eONxIUsk+asahxDW YvAjhbOoQRFQ31emn4RX9HPH4VkywC9bxHQvCfBCla7Mowq9p/T4I= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.3 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: smtpback.ht-systems.ru Date: Tue, 8 Jul 2014 22:00:26 +0400 From: Andrey Repin Reply-To: cygwin AT cygwin DOT com Message-ID: <185225348.20140708220026@yandex.ru> To: Pawel Jasinski , cygwin AT cygwin DOT com Subject: setting character set in mintty In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Greetings, Pawel Jasinski! >>> 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 " >>> (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. Even if you do that, it won't help anything at all. Typical windows program does not expect a change in console code page at all. If it was designed to use OEM CP, it will output in it regardless of actual CP. P.S. Please teach your mail agent to insert proper threading headers. A thread scattered across multiple pieces is very hard to follow. If you're subscribed in digest mode, reply to your own messages sent to the list. -- WBR, Andrey Repin (anrdaemon AT yandex DOT ru) 08.07.2014, <21:49> Sorry for my terrible english... -- 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