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: Fri, 23 Jul 2010 13:24:02 +0300 Message-ID: <83zkxits1p.fsf@gnu.org> References: <4C2C55ED.3020207@gmail.com> <4C485199.7020501@gmail.com> <4C488CCC.6080107@gmail.com> <83k4oncmyp.fsf@gnu.org> <4C48BCAC.6040101@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 1279881593 29466 80.91.229.12 (23 Jul 2010 10:39:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 23 Jul 2010 10:39:53 +0000 (UTC) Cc: 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 Fri Jul 23 12:39:51 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 1OcFev-000328-NA for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 Jul 2010 12:39:51 +0200 Original-Received: from localhost ([127.0.0.1]:56760 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OcFel-0002zc-5b for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 Jul 2010 06:39:07 -0400 Original-Received: from [140.186.70.92] (port=47297 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OcFdt-0002Hh-4x for bug-gnu-emacs@gnu.org; Fri, 23 Jul 2010 06:38:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OcFd7-0002Hz-VJ for bug-gnu-emacs@gnu.org; Fri, 23 Jul 2010 06:37:27 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56708) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OcFd7-0002Hv-Te for bug-gnu-emacs@gnu.org; Fri, 23 Jul 2010 06:37:25 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OcFR8-0001hI-1l; Fri, 23 Jul 2010 06:25: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: Fri, 23 Jul 2010 10:25: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.12798806596502 (code B ref 6546); Fri, 23 Jul 2010 10:25:02 +0000 Original-Received: (at 6546) by debbugs.gnu.org; 23 Jul 2010 10:24:19 +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 1OcFQR-0001gp-Hj for submit@debbugs.gnu.org; Fri, 23 Jul 2010 06:24:19 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OcFQO-0001gj-P8 for 6546@debbugs.gnu.org; Fri, 23 Jul 2010 06:24:17 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0L60001009MOME00@a-mtaout20.012.net.il> for 6546@debbugs.gnu.org; Fri, 23 Jul 2010 13:24:04 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([77.127.61.30]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L6000IQ1A8196J0@a-mtaout20.012.net.il>; Fri, 23 Jul 2010 13:24:02 +0300 (IDT) In-reply-to: <4C48BCAC.6040101@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: Fri, 23 Jul 2010 06:25: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:38812 Archived-At: > Date: Fri, 23 Jul 2010 00:48:28 +0300 > From: Laimonas V=C4=97bra > CC: 6546@debbugs.gnu.org >=20 > > Did you try to add a suitably-valued LANG variable to > > process-environment? That would at least force Cygwin executable= s to > > work in the Windows codepage. >=20 > The only way it works is when i set LANG process-environment variab= le to=20 > the current windows locale codepage and 'coding-system-for-write' t= o the=20 > encoding/charset in which i'd like to grep. That's the only way it's _supposed_ to work. > That way it works, but i'm not sure (seriously doubt) if LANG/local= e=20 > codepage, which differs from the actual args encoding, won't result= in=20 > any ugly problems/bugs (e.g. sorting, piping to other apps) You should set LANG to the current codepage and make sure locale-coding-system is set to the same codepage. Then the Cygwin programs invoked as Emacs subprocesses should do what you expect. > If it really won't and this setup is "as it should be, intended", t= hen=20 > this bug could be closed. Yes, this is the only setup that is supposed to work.