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 21:09:31 +0300 Message-ID: <83hbjqt6hw.fsf@gnu.org> 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> 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 1279910263 1183 80.91.229.12 (23 Jul 2010 18:37:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 23 Jul 2010 18:37:43 +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 20:37:40 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 1OcN7n-0003xw-HH for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 Jul 2010 20:37:35 +0200 Original-Received: from localhost ([127.0.0.1]:40396 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OcN7m-0004tG-IH for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 Jul 2010 14:37:34 -0400 Original-Received: from [140.186.70.92] (port=58153 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OcN7g-0004tB-TT for bug-gnu-emacs@gnu.org; Fri, 23 Jul 2010 14:37:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OcN7d-0007sb-Ix for bug-gnu-emacs@gnu.org; Fri, 23 Jul 2010 14:37:28 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33681) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OcN7d-0007sX-Fp for bug-gnu-emacs@gnu.org; Fri, 23 Jul 2010 14:37:25 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OcMi6-0005tu-2p; Fri, 23 Jul 2010 14:11: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 18:11: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.127990861522673 (code B ref 6546); Fri, 23 Jul 2010 18:11:02 +0000 Original-Received: (at 6546) by debbugs.gnu.org; 23 Jul 2010 18:10:15 +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 1OcMhL-0005te-0b for submit@debbugs.gnu.org; Fri, 23 Jul 2010 14:10:15 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OcMhI-0005tZ-PN for 6546@debbugs.gnu.org; Fri, 23 Jul 2010 14:10:13 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0L6000I00VQRJ300@a-mtaout20.012.net.il> for 6546@debbugs.gnu.org; Fri, 23 Jul 2010 21:09:32 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([77.127.61.30]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L6000HNZVRVVB30@a-mtaout20.012.net.il>; Fri, 23 Jul 2010 21:09:32 +0300 (IDT) In-reply-to: <4C49BA5E.6080101@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 14:11: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:38843 Archived-At: > Date: Fri, 23 Jul 2010 18:50:54 +0300 > From: Laimonas V=C4=97bra > CC: 6546@debbugs.gnu.org >=20 > Eli Zaretskii wrote: >=20 > > You cannot easily change the locale of a Windows system by specif= ying > > some environment variable. You need to actually switch it > > system-wide. As long as we use ANSI APIs on Windows, we can only >=20 > I am talking about LANG env settings, which we can freely change fo= r the=20 > 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. > > You can't, sorry. >=20 > You can. That example was supposed to show, that you can freely cha= nge=20 > LANG variable and cygwin utils, which relies on it, acts appropriat= ely. 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 throug= h the Windows APIs. > So, i'm asking the same question again -- why do you think it's not= =20 > worth to fix this Emacs setup restriction in order to work with cyg= win=20 > apps like it's intended from cygwin/cmd shell (setting on the fly a= s=20 > needed whatever supported locale)? I already answered that. I have nothing to add to what I said.