Mailing-List: contact cygwin-developers-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner AT cygwin DOT com Delivered-To: mailing list cygwin-developers AT cygwin DOT com From: "Sergey Okhapkin" To: "'Igor Pechtchanski'" Cc: "'Gerald S. Williams'" , Subject: RE: True case-sensitive filenames Date: Mon, 20 Jan 2003 11:34:54 -0500 Message-ID: <59A835EDCDDBEB46BC75402F4604D55231AE31@elmer> X-Priority: 3 (Normal) X-MSMail-Priority: Normal In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal X-OriginalArrivalTime: 20 Jan 2003 16:34:54.0599 (UTC) FILETIME=[DCC57170:01C2C0A1] 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 >