Mail Archives: cygwin-developers/2003/01/20/11:33:59
I don't understand the proposed algorythm. Anyway the only way to rename
the file on windows (without create new file/copy old to new/delete old
file schema) is RenameFile() call. The call is case-insensitive. If you
have files "a" and "b" in the same directory how to rename "b" to "A"?
RenameFile("b", "A"); removes file "a":-(
> -----Original Message-----
> From: Igor Pechtchanski [mailto:pechtcha AT cs DOT nyu DOT edu]
> Sent: Monday, January 20, 2003 11:16 AM
> To: Sergey Okhapkin
> Cc: 'Gerald S. Williams'; cygwin-developers AT cygwin DOT com
> Subject: RE: True case-sensitive filenames
>
>
> If that's the only thing stopping it, a case-sensitive rename
> can be accomplished by two case-insensitive renames in a row,
> as has been suggested recently on the cygwin list (by Randall
> Schulz, IIRC).
> Igor
>
> On Mon, 20 Jan 2003, Sergey Okhapkin wrote:
>
> > You can find my patch against old cygwin releases to support
> > case-sensitive filenames on www.lexa.ru/sos. The patch
> affects a lot
> > of places in cygwin sources but not fhandler_base::open only. The
> > patch supports case-sensitive file open/create/delete, but
> I know no
> > way for case-sensitive rename on windows. That was the main
> reason to
> > not include the patch into cygwin source.
> >
> > > -----Original Message-----
> > > From: cygwin-developers-owner AT cygwin DOT com
> > > [mailto:cygwin-developers-owner AT cygwin DOT com] On Behalf Of
> Gerald S.
> > > Williams
> > > Sent: Monday, January 20, 2003 10:10 AM
> > > To: cygwin-developers AT cygwin DOT com
> > > Subject: RE: True case-sensitive filenames
> > >
> > >
> > > Corinna Vinschen wrote:
> > > > On Fri, Jan 17, 2003 at 05:35:57PM -0500, Earnie Boyd wrote:
> > > > > IIRC, there is a CYGWIN variable option for this already.
> > > >
> > > > No, there isn't. Sergey had a patch relative to b18 or b19
> > > once but
> > > > it never made it into the Cygwin source.
> > >
> > > This is encouraging. So I guess there is interest in
> adding a flag
> > > like that. If so, I'll look into it some more.
> > >
> > > If the fhandler_disk_file class used for all disk file
> accesses, the
> > > change could be limited to just
> fhandler_disk_file::open(). It may
> > > make sense to extend fhandler_base with a way to support
> > > case-sensitive opens and use that instead, though.
> > >
> > > Does anyone know of any alternative file access mechanisms that
> > > might cause problems? SETUP might be an issue (it's compiled with
> > > mingw, right?), but we can cross that bridge later.
> > >
> > > -Jerry
>
> --
> http://cs.nyu.edu/~pechtcha/
> |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu
> ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com
> |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski
> '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
>
> Oh, boy, virtual memory! Now I'm gonna make myself a really
> *big* RAMdisk!
> -- /usr/games/fortune
>
- Raw text -