public inbox for cygwin-talk@cygwin.com
 help / color / mirror / Atom feed
From: "Williams, Gerald S \(Jerry\)" <gsw@agere.com>
To: "Thread TITTTL'd!" <cygwin-talk@cygwin.com>
Subject: RE: Handling special characters (\/:*?"<>|) gracefully
Date: Wed, 24 May 2006 22:07:00 -0000	[thread overview]
Message-ID: <4C89134832705D4D85A6CD2EBF38AE0F3E09FD@PAUMAILU03.ags.agere.com> (raw)

Brian Dessent wrote:
> As I understand it, the win32 API preserves case but is not case
> sensitive.  The native API is both, so in theory an application that
> used only native calls could cope with both README and Readme, but no
> win32 app could.  So, from the standpoint of Cygwin this is pretty
> useless as A) it would take significant code rewrites to use
> the native API everywhere (not to mention backcompat hell for 9x/ME)
> and B) it would lead to the situation (which we briefly got a taste
> of somewhere in a past 1.5.x release) where Cygwin was able to create
> files that could not be deleted by Explorer or any other regular
> Windows app.

I don't want to gum up the main list with this discussion...

If you wanted to make such a change in Cygwin, you wouldn't
retarget the native API, rather, you'd retarget replacements
for the 24 (or so) functions in the Win32 API that stop you
from using native naming (these would also handle backward
compatibility). I know I'm just being pedantic here, since
Cygwin already took a different route, but such a thing is
feasible--I looked into it pretty closely at one time.

Yes, it's interesting creating files that Windows utilities
can't touch (e.g., "con"). And if they try to access either
of "hello" and "Hello" they'll only get one (they can still
delete both, one at a time). I'd call these "stupid Windows
tricks" but I'm sure there's some form of redundancy in that
expression.

On the other hand, files named "cyg%4D%49%4E%47" aren't
all that amenable to manipulation via Windows utilities
either, so to some degree it's a matter of perspective.

gsw

             reply	other threads:[~2006-05-24 22:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-24 22:07 Williams, Gerald S (Jerry) [this message]
     [not found] <447420E3.5B3609B3@dessent.net>
2006-05-24 10:05 ` Dave Korn
2006-05-24 12:18   ` Brian Dessent
2006-05-24 12:28     ` Dave Korn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C89134832705D4D85A6CD2EBF38AE0F3E09FD@PAUMAILU03.ags.agere.com \
    --to=gsw@agere.com \
    --cc=cygwin-talk@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).