X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.0 required=5.0	tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_NONE
X-Spam-Check-By: sourceware.org
From: Bengt Larsson <lists.cygwin3@bengtl.net>
To: cygwin@cygwin.com
Subject: Re: [ANNOUNCEMENT] CALL FOR TESTING: Cygwin 1.7.10
Date: Wed, 07 Dec 2011 18:50:45 +0100
Reply-To: cygwin@cygwin.com
Message-ID: <lq9vd7hue8mef2rkdjpnljn12bm0r6ftum@4ax.com>
References: <announce.20111206093746.GA6222@calimero.vinschen.de> <566vd7hfmi3j980ic4m64d7bv91b5qm6uh@4ax.com> <20111207173808.GA25743@calimero.vinschen.de>
In-Reply-To: <20111207173808.GA25743@calimero.vinschen.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Corinna Vinschen wrote:
>On Dec  7 18:00, Bengt Larsson wrote:
>> Corinna Vinschen wrote:
>> 
>> >- cygwin_conv_path and cygwin_conv_path_list: In CCP_WIN_A_TO_POSIX and
>> >  CCP_POSIX_TO_WIN_A conversions, use the current Windows ANSI or OEM
>> >  charset, depending on the return value of AreFileApisANSI.  Up to Cygwin
>> >  1.7.9, both conversions used the current Cygwin charset for the conversion.
>> 
>> Is that the right thing to do? I have LANG=C.UTF-8. If I pass a
>> Windows-style filename on the command line, it's passed as UTF-8. How do
>> I then convert that to Unix-style, UTF-8?
>
>First of all, don't do that.  Use POSIX paths.
>
>Second, it's not passed as UTF-8 if the called application is a
>non-Cygwin application.  In fact, Cygwin calls CreateProcessW, so all
>strings are converted to UTF-16 (aka UNICODE) when starting a non-Cygwin
>child process.
>
>Third, as for Cygwin apps, don't use WIN_A, use WIN_W instead, because
>that's encoding agnostic:

OK, thanks.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

