From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#6546: win32 grep/shell utf-8 encoding Date: Thu, 22 Jul 2010 22:53:34 +0300 Message-ID: <83k4oncmyp.fsf@gnu.org> References: <4C2C55ED.3020207@gmail.com> <4C485199.7020501@gmail.com> <4C488CCC.6080107@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: dough.gmane.org 1279829288 20578 80.91.229.12 (22 Jul 2010 20:08:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 22 Jul 2010 20:08:08 +0000 (UTC) Cc: lekktu@gmail.com, 6546@debbugs.gnu.org To: Laimonas =?UTF-8?Q?V=C4=97bra?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 22 22:08:05 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Oc23o-0005SQ-GL for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Jul 2010 22:08:04 +0200 Original-Received: from localhost ([127.0.0.1]:51380 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oc23o-0006wN-3q for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Jul 2010 16:08:04 -0400 Original-Received: from [140.186.70.92] (port=58835 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oc23B-0006j5-FW for bug-gnu-emacs@gnu.org; Thu, 22 Jul 2010 16:07:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oc23A-00004y-4K for bug-gnu-emacs@gnu.org; Thu, 22 Jul 2010 16:07:25 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56763) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oc23A-0008WV-2E for bug-gnu-emacs@gnu.org; Thu, 22 Jul 2010 16:07:24 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Oc1rC-00036B-Lm; Thu, 22 Jul 2010 15:55:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 22 Jul 2010 19:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6546 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6546-submit@debbugs.gnu.org id=B6546.127982850011904 (code B ref 6546); Thu, 22 Jul 2010 19:55:02 +0000 Original-Received: (at 6546) by debbugs.gnu.org; 22 Jul 2010 19:55:00 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oc1r8-00035w-VJ for submit@debbugs.gnu.org; Thu, 22 Jul 2010 15:54:59 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oc1r6-00035p-Tv for 6546@debbugs.gnu.org; Thu, 22 Jul 2010 15:54:57 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0L5Z006005W7O700@a-mtaout22.012.net.il> for 6546@debbugs.gnu.org; Thu, 22 Jul 2010 22:53:36 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([77.127.61.30]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L5Z004OH5XA4470@a-mtaout22.012.net.il>; Thu, 22 Jul 2010 22:53:35 +0300 (IDT) In-reply-to: <4C488CCC.6080107@gmail.com> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 22 Jul 2010 15:55:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:38776 Archived-At: > Date: Thu, 22 Jul 2010 21:24:12 +0300 > From: Laimonas V=C4=97bra > Cc: 6546@debbugs.gnu.org >=20 > The problem is not here. I can change the encoding of the command s= tring=20 > (which is passed to external cygwin apps) using > coding-system-for-write. It works (converted correctly utf-8->cp125= 7,=20 > cp1251, etc), but it doesn't help, because of the way the args (com= mand=20 > line) are passed/transcoded through the winapi (CreateProcessA) and= =20 > cygwin layer. Did you try to add a suitably-valued LANG variable to process-environment? That would at least force Cygwin executables to work in the Windows codepage. > This bug is related to bug#6705 (there are detailed description of= =20 > what's happening) Then please merge them.