X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Wed, 3 Jun 2009 18:17:11 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: 1.7.0-48: [BUG] Passing characters above 128 from bash command line Message-ID: <20090603161711.GD22513@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <4A204149 DOT 2050009 AT sidefx DOT com> <4A2051E5 DOT 6060600 AT sidefx DOT com> <20090602205440 DOT GF23519 AT calimero DOT vinschen DOT de> <4A26782C DOT 9040207 AT sidefx DOT com> <20090603142755 DOT GM23519 AT calimero DOT vinschen DOT de> <4A268C22 DOT 8070305 AT sidefx DOT com> <20090603154919 DOT GA22513 AT calimero DOT vinschen DOT de> <4A269E70 DOT 5050605 AT sidefx DOT com> <20090603161231 DOT GC23419 AT calimero DOT vinschen DOT de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090603161231.GC23419@calimero.vinschen.de> User-Agent: Mutt/1.5.19 (2009-02-20) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Jun 3 18:12, Corinna Vinschen wrote: > On Jun 3 12:01, Edward Lam wrote: > > Corinna Vinschen wrote: > >> No. I'm suggesting to convert the command line always using the default > >> ANSI codepage, same as Windows when calling CreateProcessA. This only > >> affects non-Cygwin processes anyway since Cygwin uses another mechanism > >> to send the command line arguments to the child process. > > > > Wouldn't that necessarily break non-Cygwin processes that are UTF-16 aware? > > How? They get the commnd line in UTF-16 anyway. Ok, I found a problem. Assuming the argument is a valid filename in UTF-8 encoding, as it's the default when using LANG=C. If we try to convert this string using the ANSI codepage, the native child process will get a malformed filename as argument. Looks like always using the ANSI codepage is not exactly a good solution... Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/