From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Laimonas =?UTF-8?Q?V=C4=97bra?= Newsgroups: gmane.emacs.bugs Subject: bug#6546: win32 grep/shell utf-8 encoding Date: Thu, 22 Jul 2010 21:24:12 +0300 Message-ID: <4C488CCC.6080107@gmail.com> References: <4C2C55ED.3020207@gmail.com> <4C485199.7020501@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1279823874 31414 80.91.229.12 (22 Jul 2010 18:37:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 22 Jul 2010 18:37:54 +0000 (UTC) Cc: 6546@debbugs.gnu.org To: Juanma Barranquero Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 22 20:37:50 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 1Oc0eU-0005b3-1i for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Jul 2010 20:37:50 +0200 Original-Received: from localhost ([127.0.0.1]:60289 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oc0eS-0005ZQ-So for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Jul 2010 14:37:49 -0400 Original-Received: from [140.186.70.92] (port=40777 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oc0e6-0005YL-Iy for bug-gnu-emacs@gnu.org; Thu, 22 Jul 2010 14:37:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oc0e5-0000ju-Bp for bug-gnu-emacs@gnu.org; Thu, 22 Jul 2010 14:37:26 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41859) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oc0e5-0000jp-AL for bug-gnu-emacs@gnu.org; Thu, 22 Jul 2010 14:37:25 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Oc0S5-0001gE-N3; Thu, 22 Jul 2010 14:25:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Laimonas =?UTF-8?Q?V=C4=97bra?= 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 18: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.12798230656438 (code B ref 6546); Thu, 22 Jul 2010 18:25:01 +0000 Original-Received: (at 6546) by debbugs.gnu.org; 22 Jul 2010 18:24:25 +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 1Oc0RV-0001fn-1l for submit@debbugs.gnu.org; Thu, 22 Jul 2010 14:24:25 -0400 Original-Received: from mail-ew0-f44.google.com ([209.85.215.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oc0RT-0001fh-8x for 6546@debbugs.gnu.org; Thu, 22 Jul 2010 14:24:23 -0400 Original-Received: by ewy22 with SMTP id 22so3014720ewy.3 for <6546@debbugs.gnu.org>; Thu, 22 Jul 2010 11:24:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=RfhzyGff3pzbL6iv/8x91Aaf2Oqz6DyLC0/qSydBZiU=; b=wF6ihKn2UN8/FWgwVODsWd47DU1yoUPeULYn+3CCMGeSKZWUvmN2Jt5OHG4N2wLBD1 20/XW8QZUMuZbtazRuRL/6Y1cOmSEUmb4LT3V38sw9Xz95K9K02w9KRnahwbx9jNDWDj QinBkKF1rdY8a+1OvBluJRBsGp3ukhdmQBYEc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=G3t2x4h11lQQI8hhNl+Jzz8U+eRlBk9B2lN2b5m2WFGeV71/ycnkpI2PB8LesxMXWW 3TaMiaiE+KjnoVGTcf/Dch5NWWpTznAJwz6GCWgxOzphB5JdhNcOl3AyuTuokz0dQmqr yNo4qvjHSaqi6BBoi/olLBYw82zez8YmRYxqI= Original-Received: by 10.213.108.203 with SMTP id g11mr8345563ebp.51.1279823057913; Thu, 22 Jul 2010 11:24:17 -0700 (PDT) Original-Received: from [192.168.2.2] (lan-84-240-35-136.vln.skynet.lt [84.240.35.136]) by mx.google.com with ESMTPS id a48sm55681324eei.18.2010.07.22.11.24.16 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 22 Jul 2010 11:24:16 -0700 (PDT) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.11) Gecko/20100701 SeaMonkey/2.0.6 In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 22 Jul 2010 14: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:38769 Archived-At: Juanma Barranquero wrote: > On Thu, Jul 22, 2010 at 16:11, Laimonas VÄ—bra wrote: > >> That means you are using gnu-win32 grep. Some older (2.5.4) and newer >> (2.6.3) cygwin greps won't work. > > Sorry, I missed that in your original report. > > Did you try adding an entry to `process-coding-system-alist'? The problem is not here. I can change the encoding of the command string (which is passed to external cygwin apps) using coding-system-for-write. It works (converted correctly utf-8->cp1257, cp1251, etc), but it doesn't help, because of the way the args (command line) are passed/transcoded through the winapi (CreateProcessA) and cygwin layer. This bug is related to bug#6705 (there are detailed description of what's happening)