delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/07/03/06:19:06

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Wed, 3 Jul 2002 13:18:22 +0300
From: Ville Herva <vherva AT niksula DOT hut DOT fi>
To: cygwin AT cygwin DOT com
Subject: Re: Accessing filenames with different charsets
Message-ID: <20020703101822.GJ9092@niksula.cs.hut.fi>
References: <20020701085851 DOT GD9092 AT niksula DOT cs DOT hut DOT fi> <20020702213825 DOT GF9092 AT niksula DOT cs DOT hut DOT fi> <01f801c22212$7d0cecf0$0100a8c0 AT advent02> <20020703093837 DOT GI9092 AT niksula DOT cs DOT hut DOT fi> <004e01c22278$346ec610$0100a8c0 AT advent02>
Mime-Version: 1.0
In-Reply-To: <004e01c22278$346ec610$0100a8c0@advent02>
User-Agent: Mutt/1.3.25i

On Wed, Jul 03, 2002 at 10:58:38AM +0100, you [Chris January] wrote:
>
> I wrote a patch for Cygwin yesterday that converts Unicode filenames to UTF8
> and back for some file operations. 

Nice!

> This should do what you want and allow you to restore the names correctly
> later. I will post it to cygwin-patches sometime today, but I'm not sure
> whether the patch will appear in a Cygwin snapshot anytime soon, if not I
> can send you the modified binary and the patch directly for you to try.
> The only disadvantage with this method is it still makes the filenames
> impossible to type. However, if you have your terminal set up correctly,
> it is certainly possible to read them as they should be (e.g. in xterm
> with UTF8 support turned on). If you are using a graphical file browser
> like konqueror then that makes things even easier.

Yes, UTF8 approach is propably preferable in all ways. As for typing, I
imagine you can get the 8.3 name with

  for i in *; do echo $i: `cygpath -w -s $i`; done

so you'll be able to type some name for the file as well.

I'm really glad to see this fixed. 

What about filenames longer than MAX_PATH? Those can only be accessed with
"\\.\<path>" and unicode file functions...


-- v --

v AT iki DOT fi

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019