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: bug#6705: w32 cmdproxy.c pass args to cygwin; erroneous charset conversion (problem description, solution/suggestion) Date: Thu, 22 Jul 2010 21:14:08 +0300 Message-ID: <4C488A70.6030007@gmail.com> References: <4C483A30.9010804@gmail.com> <87bp9zzivi.fsf@home.jasonrumney.net> 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 1279823876 31420 80.91.229.12 (22 Jul 2010 18:37:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 22 Jul 2010 18:37:56 +0000 (UTC) Cc: 6546@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 22 20:37:48 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 1Oc0eQ-0005YG-TH for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Jul 2010 20:37:47 +0200 Original-Received: from localhost ([127.0.0.1]:60287 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oc0eQ-0005ZI-4f for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Jul 2010 14:37:46 -0400 Original-Received: from [140.186.70.92] (port=40757 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oc0e4-0005XX-WF for bug-gnu-emacs@gnu.org; Thu, 22 Jul 2010 14:37:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oc0e3-0000j3-Hd for bug-gnu-emacs@gnu.org; Thu, 22 Jul 2010 14:37:24 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41857) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oc0e3-0000iz-Ex for bug-gnu-emacs@gnu.org; Thu, 22 Jul 2010 14:37:23 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Oc0IR-0001YO-4V; Thu, 22 Jul 2010 14:15:03 -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:15:03 +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.12798224575950 (code B ref 6546); Thu, 22 Jul 2010 18:15:03 +0000 Original-Received: (at 6546) by debbugs.gnu.org; 22 Jul 2010 18:14:17 +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 1Oc0Hh-0001Xv-Kd for submit@debbugs.gnu.org; Thu, 22 Jul 2010 14:14:17 -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 1Oc0Hf-0001Xq-GW for 6546@debbugs.gnu.org; Thu, 22 Jul 2010 14:14:16 -0400 Original-Received: by eyb7 with SMTP id 7so2014653eyb.3 for <6546@debbugs.gnu.org>; Thu, 22 Jul 2010 11:14:10 -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:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=KDvzU3J7r7COTojeGmgNQg43X8RovHcS/j3TPMQ5ZSY=; b=XxlVUCf6h4GYSKS809yHOLtc0batkuX/gf9KO5dBpA9uXbAg5ii3cC1pwR+AkhZGJF vrPNEDhw37KjfWDTQJc6GVvvHMVIeBQcikG2uSeNH4IropXoZzSjSp5uqokK00yxavfP 3yBkt4YOruVKZA/kFUQYSunc5mz1o3ZBb2At0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:cc:subject:references :in-reply-to:content-type:content-transfer-encoding; b=pzypyur7B293BM1T08OCDITa8JyeCnvt0rAD26VEyfJSHKUI13zmB6qC6quLf8cIKB 5szzdty/m9XMM99HRZo+bEUeCn9Wvjw8eBLwXpClq4FbtZku8vUOjVJ5ui1URCQafwwP 8iYo4u+ET45OREMaO54njKvHYAJ8JL1Yp5Vt4= Original-Received: by 10.213.32.135 with SMTP id c7mr2349370ebd.2.1279822450457; Thu, 22 Jul 2010 11:14:10 -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 v8sm55711047eeh.2.2010.07.22.11.14.09 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 22 Jul 2010 11:14:10 -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: <87bp9zzivi.fsf@home.jasonrumney.net> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 22 Jul 2010 14:15: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:38771 Archived-At: Jason Rumney wrote: > Don't use cmdproxy with Cygwin programs. If you need a shell in > between, use Cygwin bash. cmdproxy is a wrapper to get around some > problems with various versions of the Windows native cmd.exe and > command.com shell programs. Mixing Cygwin and native Windows is not > advised. That doesn't solve the problem (try to pass utf-8 string from Emacs to cygwin/bin/(ba)sh.exe or any other cygwin app), nor it anyhow complicates the matter (cmdproxy just passes commandline to CreateProcess(); same happens in w32proc.c calling /bin/sh instead of cmdproxy.exe). The problem is not cmdproxy itself, but winapi/cygwin layer and the way the args are passed/transcoded using CreateProcess(A) -> cygwin layer.