From: "Eli Zaretskii" <eliz@is.elta.co.il>
Cc: emacs-devel@gnu.org
Subject: Re: Bug Emacs 21.3: write-file downcasing
Date: Fri, 07 Feb 2003 19:16:58 +0200 [thread overview]
Message-ID: <2110-Fri07Feb2003191658+0200-eliz@is.elta.co.il> (raw)
In-Reply-To: <20030207163850.3779.LEKTU@terra.es> (message from Juanma Barranquero on Fri, 07 Feb 2003 16:50:11 +0100)
> Date: Fri, 07 Feb 2003 16:50:11 +0100
> From: Juanma Barranquero <lektu@terra.es>
> >
> > > 2001-11-08 Andrew.Maguire@Smallworld.co.uk (Andrew Maguire) gnu.emacs.bug
> > > (file-truename "C:/temp/a_file")
> > > returns "C:/temp/a_file" if the file does not exist and
> > > "c:/temp/a_file" if it does.
> >
> > I'm not convinced this is a bug :)
> >
> > If the file does not exist, the argument is returned unmodified.
> >
> > OTOH, if the file does exist, eventually normalize_filename (in w32.c)
> > gets called, which returns the path and name exactly as it exists in
> > the filesystem, but purposefully downcases the drive letter, according
> > to this changelog entry:
> >
> > > 1996-07-03 Andrew Innes <andrewi@harlequin.co.uk>
> > >
> > > * nt.c (normalize_filename): Always lower-case drive letters, even
> > > on systems that preserve case in filenames.
> >
> > and this source code comment:
> >
> > > /* Always lower-case drive letters a-z, even if the filesystem
> > > preserves case in filenames.
> > > This is so filenames can be compared by string comparison
> > > functions that are case-sensitive. Even case-preserving filesystems
> > > do not distinguish case in drive letters. */
> >
> > If the return value of file-truename is used in comparisons, then
> > perhaps the best answer would be unconditionally downcasing the drive
> > letter (in the windows-specific part of the code) even if
> > w32-long-file-name returns nil.
If the problem was that the drive letter was not downcased, I don't
see how did we arrive at downcasing the entire file name. I don't
think the OP of this thread would oppose to having just the drive
letter be returned in lower case.
What am I missing?
next prev parent reply other threads:[~2003-02-07 17:16 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-07 5:38 Bug Emacs 21.3: write-file downcasing Dhruva Krishnamurthy
2003-02-07 8:07 ` Juanma Barranquero
2003-02-07 15:23 ` Eli Zaretskii
2003-02-07 15:50 ` Juanma Barranquero
2003-02-07 17:16 ` Eli Zaretskii [this message]
2003-02-07 17:33 ` Juanma Barranquero
2003-02-07 17:57 ` Stefan Monnier
2003-02-07 18:19 ` Eli Zaretskii
2003-02-09 12:39 ` Richard Stallman
2003-02-09 15:52 ` Eli Zaretskii
2003-02-10 4:41 ` Dhruva Krishnamurthy
2003-02-10 5:46 ` Eli Zaretskii
2003-02-10 10:03 ` Dhruva Krishnamurthy
2003-02-10 8:21 ` Jason Rumney
2003-02-10 10:44 ` Juanma Barranquero
[not found] ` <m2smuxcwba.fsf@primate.xs4all.nl>
2003-02-10 22:39 ` Richard Stallman
2003-02-10 22:52 ` Andreas Schwab
2003-02-11 22:25 ` Richard Stallman
2003-02-12 8:28 ` Jason Rumney
2003-02-12 10:26 ` Kim F. Storm
2003-02-12 19:36 ` Jason Rumney
2003-02-12 17:50 ` Kevin Rodgers
2003-02-12 22:19 ` Andreas Schwab
2003-02-14 22:29 ` Kevin Rodgers
2003-02-11 14:53 ` Benjamin Riefenstahl
2003-02-11 23:02 ` Jason Rumney
2003-02-12 13:37 ` Benjamin Riefenstahl
2003-02-12 13:49 ` Andreas Schwab
2003-02-12 14:57 ` Benjamin Riefenstahl
2003-02-12 19:40 ` Jason Rumney
2003-02-07 18:18 ` Eli Zaretskii
2003-02-07 20:19 ` Juanma Barranquero
2003-02-07 23:03 ` Eli Zaretskii
2003-02-07 18:31 ` Jason Rumney
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=2110-Fri07Feb2003191658+0200-eliz@is.elta.co.il \
--to=eliz@is.elta.co.il \
--cc=emacs-devel@gnu.org \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.