X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-0.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,RCVD_NUMERIC_HELO,SARE_SUB_ENC_UTF8,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Lenik Subject: Re: [1.7] Proposal: the filename encoding in C locale uses UTF-8 instead of SO/UTF-8 Date: Sun, 17 May 2009 20:32:39 +0800 Lines: 41 Message-ID: References: <3f0ad08d0905121029j119c8a7ep41d3a261d8bea338 AT mail DOT gmail DOT com> <20090516154934 DOT GU21324 AT calimero DOT vinschen DOT de> <3f0ad08d0905161909n1d1af679ob9d7630c4f5fb9af AT mail DOT gmail DOT com> <20090517115351 DOT GX21324 AT calimero DOT vinschen DOT de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b3pre) Gecko/20090223 Thunderbird/3.0b2 In-Reply-To: <20090517115351.GX21324@calimero.vinschen.de> X-IsSubscribed: yes 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 2009-5-17 19:53, Corinna Vinschen wrote: > On May 17 15:52, Lenik wrote: >> On 2009-5-17 10:09, IWAMURO Motonori wrote: >>> 2009/5/17 Lenik: >>>> Thanks, but where can I get this patch? >>> You can checkout it from CVS HEAD. >> [...] >> 6 weeks to the next release maybe too long to wait. > > We have about 2 weeks between the test releases. > > > Corinna > Thank you, I'll be very happy if I can apply your great patch in next morning if not earlier. I'd rather hope I can get everything immediately when I read your reply, and IMHO that should be very easy, all what you have to do is make your working directory public and accessible. Stupid idea, heh? :) Currently I resolved it by a simple function: > function _u2w() { > local p="$(cygpath -au $1)" > if [ "${p:0:5}" = "/mnt/" -o "${p:0:10}" = "/cygdrive/" ]; then > p="${p:1}" > p="${p#*/}" > p="${p/\//:/}" > else > if [ "${p:0:9}" = /usr/bin/ ]; then p="${p:4}"; fi > if [ "${p:0:9}" = /usr/lib/ ]; then p="${p:4}"; fi > p="$(cygpath -am /)$p" > fi > p="${p//\//\\}" > echo "$p" > } > > path="$(_u2w $path)" Lenik -- 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/