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#6705: w32 cmdproxy.c pass args to cygwin; erroneous charset conversion (problem description, solution/suggestion) Date: Fri, 23 Jul 2010 17:35:27 +0300 Message-ID: <83pqyetgeo.fsf@gnu.org> References: <4C483A30.9010804@gmail.com> <83lj93cn42.fsf@gnu.org> <4C48B11D.4050202@gmail.com> <831vauv6q1.fsf@gnu.org> <4C4991CA.3010103@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 1279895860 14790 80.91.229.12 (23 Jul 2010 14:37:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 23 Jul 2010 14:37:40 +0000 (UTC) Cc: 6705@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 16:37:38 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 1OcJNa-0002M4-7t for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 Jul 2010 16:37:38 +0200 Original-Received: from localhost ([127.0.0.1]:37777 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OcJNZ-0005ta-15 for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 Jul 2010 10:37:37 -0400 Original-Received: from [140.186.70.92] (port=35542 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OcJNR-0005sz-4H for bug-gnu-emacs@gnu.org; Fri, 23 Jul 2010 10:37:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OcJNN-00073F-26 for bug-gnu-emacs@gnu.org; Fri, 23 Jul 2010 10:37:29 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33696) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OcJNM-00073A-Vi for bug-gnu-emacs@gnu.org; Fri, 23 Jul 2010 10:37:25 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OcJM3-0004GR-O6; Fri, 23 Jul 2010 10:36:03 -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 14:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6705 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6705-submit@debbugs.gnu.org id=B6705.127989574216375 (code B ref 6705); Fri, 23 Jul 2010 14:36:02 +0000 Original-Received: (at 6705) by debbugs.gnu.org; 23 Jul 2010 14:35:42 +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 1OcJLi-0004G4-6j for submit@debbugs.gnu.org; Fri, 23 Jul 2010 10:35:42 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OcJLf-0004Fz-Ol for 6705@debbugs.gnu.org; Fri, 23 Jul 2010 10:35:40 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0L6000200LTDUE00@a-mtaout21.012.net.il> for 6705@debbugs.gnu.org; Fri, 23 Jul 2010 17:35:28 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([77.127.61.30]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L6000NXXLV30M90@a-mtaout21.012.net.il>; Fri, 23 Jul 2010 17:35:28 +0300 (IDT) In-reply-to: <4C4991CA.3010103@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 10:36:03 -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:38822 Archived-At: > Date: Fri, 23 Jul 2010 15:57:46 +0300 > From: Laimonas V=C4=97bra > CC: 6705@debbugs.gnu.org >=20 > It's not the problem to pass utf-8 arguments to natvive (mingw) > apps. If these MinGW applications use Unicode (UTF-16) APIs, that's true. But if they use the ANSI APIs (and most of them do), then you simply cannot pass to them command-line arguments encoded in any encoding other than the current codepage. > I'd like to grep for some utf-8 encoded string. Stop. That's your problem, right there: you can't have this, not unless your current codepage is 65001. > > I didn't try to imply that Cygwin was the problem. I was suggest= ing > > to use the Cygwin build of Emacs. Why do you insist on using the > > native w32 build, when it is obvious that the compatibility betwe= en > > what it does and what Cygwin expects is marginal at best? >=20 > I tried to imply, that cygwin tools is mature/consistent enough for= the=20 > w32 to work with. Mature, but incompatible with the w32 build of Emacs. And Cygwin 1.7 made them even more incompatible. > In other words -- (why) do you think it's not worth to tune Emacs w= ith=20 > cygwin system (plenty of useful tools; especially if we think about= =20 > working (efficiently, the same) with emacs on different systems: *n= ix, w32)? In my view, users of the w32 build of Emacs who use Cygwin tools outside Emacs are a minority. There are native w32 ports of most of the tools you have in Cygwin, and there is the Cygwin build of Emacs. I don't see why the handful of Emacs developers who contribute to the w32 port should invest a significant part of their scarce resources o= n fixing incompatibilities between the w32 Emacs and Cygwin, when a Cygwin build of Emacs is available and works pretty well, judging by the few of its users who are active on the emacs-devel list. I don't know why you say it's "potentially" more buggy -- it uses mostly the same code that runs on GNU/Linux, so actually it should be _less_ buggy than the native w32 build, because it is used by a larger numbe= r of users. Did you even try to switch to the Cygwin build? If not, perhaps you should.