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, 01 Jul 2010 11:46:37 +0300 Message-ID: <4C2C55ED.3020207@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1277974788 10312 80.91.229.12 (1 Jul 2010 08:59:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 1 Jul 2010 08:59:48 +0000 (UTC) To: 6546@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 01 10:59:46 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 1OUFcX-0008Ma-QR for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 Jul 2010 10:59:46 +0200 Original-Received: from localhost ([127.0.0.1]:33083 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OUFcW-0007Oq-Ez for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 Jul 2010 04:59:44 -0400 Original-Received: from [140.186.70.92] (port=58262 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OUFcJ-0007Jn-VV for bug-gnu-emacs@gnu.org; Thu, 01 Jul 2010 04:59:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OUFcI-0002tr-Pc for bug-gnu-emacs@gnu.org; Thu, 01 Jul 2010 04:59:31 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38546) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OUFcI-0002tl-Mz for bug-gnu-emacs@gnu.org; Thu, 01 Jul 2010 04:59:30 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OUFRC-0000Sd-8u; Thu, 01 Jul 2010 04:48:02 -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, 01 Jul 2010 08:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6546 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.12779740221752 (code B ref -1); Thu, 01 Jul 2010 08:48:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 Jul 2010 08:47:02 +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 1OUFQD-0000SD-S4 for submit@debbugs.gnu.org; Thu, 01 Jul 2010 04:47:02 -0400 Original-Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OUFQB-0000S1-U8 for submit@debbugs.gnu.org; Thu, 01 Jul 2010 04:47:00 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:59848) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OUFQ9-0000Jr-4V for submit@debbugs.gnu.org; Thu, 01 Jul 2010 04:46:57 -0400 Original-Received: from [140.186.70.92] (port=33731 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OUFQ4-0001yM-KC for bug-gnu-emacs@gnu.org; Thu, 01 Jul 2010 04:46:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OUFQ0-0001Tq-C0 for bug-gnu-emacs@gnu.org; Thu, 01 Jul 2010 04:46:52 -0400 Original-Received: from mail-fx0-f41.google.com ([209.85.161.41]:52078) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OUFQ0-0001Tc-0g for bug-gnu-emacs@gnu.org; Thu, 01 Jul 2010 04:46:48 -0400 Original-Received: by fxm17 with SMTP id 17so1167112fxm.0 for ; Thu, 01 Jul 2010 01:46:46 -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:subject:content-type :content-transfer-encoding; bh=VJiPp7NfgOqHPqZs8lbus1bQmJIi5ebv7OauO12aq6I=; b=FK7QRgZXX6DrTC2iNW2E1Nv3wXP9TEicqycFmpiCnMWQhSNnDSVoNJa1E5y9DgYndu KGkVZkJi4k5PnC4lPjltniqVe8V+xhnnthuLeuIuoVXDqlPWq1PvlIkcnPch9vZMGT0F vxAxRPnnH8oMgWfUX9rkHgr4iXvjDR/fHv160= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=HwEc4YoZ5ATfBy+UFQiMPb6G1DMCw8oRjfE+6UDyvV0P1QczsLAOwMddw3YC+LTtlv e7WiNmrZeNBoZCDyv39d3BXC0mJV4JC55dAJCLAacHZhlnaX1X4z62e901w5U/wtgG6h J7qlWlPBNIJGZu/1S7EEM9UIzk3TfRHenylkA= Original-Received: by 10.102.243.26 with SMTP id q26mr3598787muh.34.1277974001035; Thu, 01 Jul 2010 01:46:41 -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 j10sm1317021muh.58.2010.07.01.01.46.40 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 01 Jul 2010 01:46:40 -0700 (PDT) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.9) Gecko/20100317 SeaMonkey/2.0.4 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 01 Jul 2010 04:48: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:38167 Archived-At: Maybe it's actually not the bug (but missing functionality), but how do one should/could setup ones emacs && .emacs to grep files in utf-8 encoding? grep 2.6.3 (cygwin) at last works correctly (coloring multibyte matches) from win32 console (according to LANG environment settings), but no matter how i've tried to push emacs (set-language-environment, coding-system-for-(read|write), set-env in grep-setup-hook), it just don't work, because somewhere inside the Emacs win32 stuff it sticks to windows locale codepage and tries hard to convert to this codepage/encoding before it passes arguments to shell. No wonder -- it fails when it comes to unicode. How to reproduce: Create utf-8 file with some unicode characters (Cyrillic, Baltic, whatever; not only ascii) and try to grep for some utf-8 strings from Emacs (M-x grep).