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: Fri, 23 Jul 2010 22:07:16 +0300 Message-ID: <4C49E864.7010306@gmail.com> References: <4C2C55ED.3020207@gmail.com> <4C485199.7020501@gmail.com> <4C488CCC.6080107@gmail.com> <83k4oncmyp.fsf@gnu.org> <4C48BCAC.6040101@gmail.com> <83zkxits1p.fsf@gnu.org> <4C49910A.2010209@gmail.com> <83r5iutgy4.fsf@gnu.org> <4C49BA5E.6080101@gmail.com> <83hbjqt6hw.fsf@gnu.org> 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 1279913978 14061 80.91.229.12 (23 Jul 2010 19:39:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 23 Jul 2010 19:39:38 +0000 (UTC) Cc: 6546@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 23 21:39:35 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 1OcO5g-0007EL-2l for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 Jul 2010 21:39:28 +0200 Original-Received: from localhost ([127.0.0.1]:33140 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OcO5f-00065y-Gf for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 Jul 2010 15:39:27 -0400 Original-Received: from [140.186.70.92] (port=36334 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OcO3k-0004qO-S1 for bug-gnu-emacs@gnu.org; Fri, 23 Jul 2010 15:37:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OcO3j-00008e-7R for bug-gnu-emacs@gnu.org; Fri, 23 Jul 2010 15:37:28 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50261) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OcO3j-00008Z-3Y for bug-gnu-emacs@gnu.org; Fri, 23 Jul 2010 15:37:27 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OcNbF-0006Ju-Tv; Fri, 23 Jul 2010 15:08: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: Fri, 23 Jul 2010 19:08: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.127991204924284 (code B ref 6546); Fri, 23 Jul 2010 19:08:01 +0000 Original-Received: (at 6546) by debbugs.gnu.org; 23 Jul 2010 19:07:29 +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 1OcNai-0006Jd-K0 for submit@debbugs.gnu.org; Fri, 23 Jul 2010 15:07:28 -0400 Original-Received: from mail-ey0-f172.google.com ([209.85.215.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OcNah-0006JY-KG for 6546@debbugs.gnu.org; Fri, 23 Jul 2010 15:07:28 -0400 Original-Received: by eyb7 with SMTP id 7so115353eyb.3 for <6546@debbugs.gnu.org>; Fri, 23 Jul 2010 12:07:25 -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=gbSMTAMEvt/fFsMejkbWrheAlRVrjE1wGnYQk0hg3sc=; b=pFBaEiZOdkQ8C2RG2sYWYGgpJV9zBjeYk8gfwdWfCj/wK+alBn/o8O5idTy2i1P+vq 1JoGTc2Tguzo8nuL9GCyMdMmxFSf0AxCe7090BLcbe9eulhPBkPmXH5Jfi/CfleR8HCJ xH2EH/vi2T5q5Es0xxzRG/lL3oSXM/Yc9KIhY= 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=YYrukMB1e4MyuLIQHySfqR3mRlv2WqyO3oGTOTcPZlzDe2iz+r/pzO22FEZ0CwWnAs CkHE8wtjf0KuKgFGKrGOg/rKj+eJCiRVqbOGbD+co7LjSD+9+1M8tnVM08LSAJIAW8kx 37CJwFqALDAwFutvcut+2scnoYuMDT6AKsg0Q= Original-Received: by 10.213.31.148 with SMTP id y20mr3606844ebc.39.1279912044871; Fri, 23 Jul 2010 12:07:24 -0700 (PDT) Original-Received: from [84.240.35.136] (lan-84-240-35-136.vln.skynet.lt [84.240.35.136]) by mx.google.com with ESMTPS id a48sm833016eei.19.2010.07.23.12.07.24 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 23 Jul 2010 12:07:24 -0700 (PDT) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.10) Gecko/20100504 SeaMonkey/2.0.5 In-Reply-To: <83hbjqt6hw.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 23 Jul 2010 15:08: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:38847 Archived-At: Eli Zaretskii wrote: >> Date: Fri, 23 Jul 2010 18:50:54 +0300 >> From: Laimonas VÄ—bra >> CC: 6546@debbugs.gnu.org >> >> Eli Zaretskii wrote: >> >>> You cannot easily change the locale of a Windows system by specifying >>> some environment variable. You need to actually switch it >>> system-wide. As long as we use ANSI APIs on Windows, we can only >> >> I am talking about LANG env settings, which we can freely change for the >> cygwin apps to act differently (as we need). > > You are talking about Cygwin programs, while I'm talking about the > native w32 build of Emacs. The effect of LANG and the way to change > the locale is different for each one of these two. I am talking about LANG setting restrictions, that Emacs implies. I think -- it shouldn't. > >>> You can't, sorry. >> >> You can. That example was supposed to show, that you can freely change >> LANG variable and cygwin utils, which relies on it, acts appropriately. > > Again, I was not talking about Cygwin, I was talking about the native > w32 build of Emacs. It doesn't use the Unicode (UTF-16) APIs, so it > can only support the current codepage when it invokes programs through > the Windows APIs. It *can* (try mingw example, that i posted) pass utf-8 encoded (and in other encodings) arguments when it invokes external programs and for that it doesn't need to use UTF-16 API _everywhere_. Like i said -- now it (perfectly) works with native/mingw apps without any change.