From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Foreign file names on MS-Windows
Date: Sat, 22 Mar 2008 20:56:51 -0400 [thread overview]
Message-ID: <jwvfxui9sf7.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <uve3efwvs.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 22 Mar 2008 20:15:35 +0200")
>> I.e. why fiddle with Vw32_downcase_file_names?
> Because 8+3 aliases are reported in all caps, as the comment says, so
> instead of "some foreign file name.mp3" you get something like
> "ABCDE~45.MP3", and I fear that not every alist in Emacs that supports
> file recognition by extension includes both lower- and upper-case
> variants. Also, lower-casing the 8+3 aliases makes them slightly less
> ugly, IMO.
The ugliness factor is irrelevant: those files are ugly anyway, and
having them in all-caps makes it arguably (to me) more clear what's
going on.
But the issue of recognition of all-caps extension is a good argument,
that's the one that should be in the comment.
>> And more importantly why modify the code to change dir_static.d_namlen
>> before the computation of dir_static.d_reclen (which uses
>> dir_static.d_namlen)?
> The original code used d_namlen to compute d_reclen before the former
> was set, which in effect used the value of d_namlen from the previous
> invocation of `readdir' (since dir_static is a static variable). I
> fixed that by reordering the statements where d_namlen and d_reclen
> are computed. You will see that the `readdir' implementations in
> sysdep.c all do it in the order I did, and I'm quite sure w32.c is
> trying to faithfully emulate sysdep.c implementations.
I see, so it's a separate bugfix.
> Anyway, d_reclen is not used anywhere in Emacs (and I have no idea
> what would it be useful for, even in principle), so if you prefer that
> I don't touch d_reclen's line on the branch, I'm okay with that.
I guess that would be preferable, then,
Stefan
next prev parent reply other threads:[~2008-03-23 0:56 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-22 12:50 Foreign file names on MS-Windows Eli Zaretskii
2008-03-22 13:21 ` Lennart Borgman (gmail)
2008-03-22 13:32 ` Eli Zaretskii
2008-03-22 14:34 ` Eli Zaretskii
2008-03-22 15:38 ` Jason Rumney
2008-03-22 17:26 ` Eli Zaretskii
2008-03-22 17:32 ` Stefan Monnier
2008-03-22 18:15 ` Eli Zaretskii
2008-03-23 0:56 ` Stefan Monnier [this message]
2008-03-23 4:22 ` Eli Zaretskii
2008-03-24 1:15 ` Stefan Monnier
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=jwvfxui9sf7.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=eliz@gnu.org \
--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.