X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Sun, 17 May 2009 13:24:02 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: [1.7] Proposal: the filename encoding in C locale uses UTF-8 instead of SO/UTF-8 Message-ID: <20090517112402.GW21324@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <3f0ad08d0905121029j119c8a7ep41d3a261d8bea338 AT mail DOT gmail DOT com> <20090516154934 DOT GU21324 AT calimero DOT vinschen DOT de> <3f0ad08d0905161909n1d1af679ob9d7630c4f5fb9af AT mail DOT gmail DOT com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3f0ad08d0905161909n1d1af679ob9d7630c4f5fb9af@mail.gmail.com> 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 May 17 11:09, IWAMURO Motonori wrote: > 2009/5/17 Lenik : > > Thanks, but where can I get this patch? > > You can checkout it from CVS HEAD. It occured to me that, if you're using a charset which differs from your current ANSI or OEM codepage, you might run into trouble with native Windows tools. Therefore I also added a new -C/--codepage option to cygpath to specify the codepage used to create a WIndows path from a Cygwin path. For instance: cygpath -C ANSI -aw . creates the full path of the CWD in the current ANSI codepage. The -C/--codepage option takes the following parameters: - ANSI to specify the current ANSI codepage (for interaction with GUI tools). - OEM to specify the current OEM codepage (for interaction with CLI tools). - UTF8 just guess... UTF-8 - n A decimal codepage number according to the following table: http://msdn.microsoft.com/en-us/library/dd317756(VS.85).aspx Note that not all installations support all codepages. I hope that helps. Please note that the -C option doesn't work yet for the -p option. That's something I'll do after my vacation. 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/