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, 01 Jul 2010 20:26:26 +0300 Message-ID: <83hbkj9kql.fsf@gnu.org> References: <4C2C55ED.3020207@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 1278005391 28611 80.91.229.12 (1 Jul 2010 17:29:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 1 Jul 2010 17:29:51 +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 Thu Jul 01 19:29:48 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 1OUNa8-0000gZ-0t for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 Jul 2010 19:29:48 +0200 Original-Received: from localhost ([127.0.0.1]:42723 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OUNa7-0004fH-DG for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 Jul 2010 13:29:47 -0400 Original-Received: from [140.186.70.92] (port=32982 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OUNZv-0004dL-Mq for bug-gnu-emacs@gnu.org; Thu, 01 Jul 2010 13:29:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OUNZq-0003L2-SJ for bug-gnu-emacs@gnu.org; Thu, 01 Jul 2010 13:29:35 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52185) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OUNZq-0003Ky-R0 for bug-gnu-emacs@gnu.org; Thu, 01 Jul 2010 13:29:30 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OUNVV-0004Ki-KO; Thu, 01 Jul 2010 13:25:01 -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, 01 Jul 2010 17:25:01 +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.127800506816648 (code B ref 6546); Thu, 01 Jul 2010 17:25:01 +0000 Original-Received: (at 6546) by debbugs.gnu.org; 1 Jul 2010 17:24:28 +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 1OUNUy-0004KT-00 for submit@debbugs.gnu.org; Thu, 01 Jul 2010 13:24:28 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OUNUv-0004KO-Bt for 6546@debbugs.gnu.org; Thu, 01 Jul 2010 13:24:26 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0L4W000002ZBVK00@a-mtaout22.012.net.il> for 6546@debbugs.gnu.org; Thu, 01 Jul 2010 20:24:20 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.229.12.240]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L4W00MOF30JTT30@a-mtaout22.012.net.il>; Thu, 01 Jul 2010 20:24:20 +0300 (IDT) In-reply-to: <4C2C55ED.3020207@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, 01 Jul 2010 13:25:01 -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:38174 Archived-At: > Date: Thu, 01 Jul 2010 11:46:37 +0300 > From: Laimonas V=C4=97bra > Cc:=20 >=20 > Maybe it's actually not the bug (but missing functionality), but ho= w do=20 > one should/could setup ones emacs && .emacs to grep files in utf-8= =20 > encoding? >=20 > grep 2.6.3 (cygwin) at last works correctly (coloring multibyte mat= ches)=20 > from win32 console (according to LANG environment settings), but no= =20 > matter how i've tried to push emacs (set-language-environment,=20 > coding-system-for-(read|write), set-env in grep-setup-hook), it jus= t=20 > don't work, because somewhere inside the Emacs win32 stuff it stick= s to=20 > windows locale codepage and tries hard to convert to this=20 > codepage/encoding before it passes arguments to shell. No wonder --= it=20 > fails when it comes to unicode. Did you try set-process-coding-system?