unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: David Kastrup <dak@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Chong Yidong <cyd@stupidchicken.com>, emacs-devel@gnu.org
Subject: Re: [gmane.emacs.bugs] Emacs fails to start properly if the current working directory is on a vfat or ntfs filesystem
Date: Sat, 23 Feb 2008 23:33:08 +0100	[thread overview]
Message-ID: <85oda71exn.fsf@lola.goethe.zz> (raw)
In-Reply-To: <umyprmhy7.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 24 Feb 2008 00:22:24 +0200")

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Chong Yidong <cyd@stupidchicken.com>
>> Date: Sat, 23 Feb 2008 17:00:52 -0500
>> 
>> Does anyone here have a vfat/ntfs partition for investigating this bug?
>
> There's no need to investigate, as the problem is clearly evident:
> Windows-based filesystems don't allow certain characters in file
> names, and `*' is one of these characters.  So a file name such as
> `#*scratch*#20913s5z#' is not allowed.
>
> To properly fix such a problem, Emacs needs to know the type of
> filesystem of a file.  Then we could employ the same technique as the
> Windows port does now, but conditioned by the filesystem, not the OS.
>
> However, I don't think we have infrastructure for querying the file
> about its filesystem type, do we?

A similar problem would be filename completion.  We have separate code
paths for that in Windows/Unix I believe, even though on MacOSX, the
file system tends to be case insensitive, too (and normalizing utf-8
composed characters in some manner).

If we could design some sort of system call sequence that worked out
insensitivity/normalizing agnostic, this would mean that on a typical
GNU/Linux system which can mount various foreign file system types,
everything would work out according to expectations.

That would seem to be preferable to #ifdef and its ilk.  I think,
however, that stuff like the "\\" directory separator can be system
rather than file system dependent.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum




  parent reply	other threads:[~2008-02-23 22:33 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-23 22:00 [gmane.emacs.bugs] Emacs fails to start properly if the current working directory is on a vfat or ntfs filesystem Chong Yidong
2008-02-23 22:22 ` Eli Zaretskii
2008-02-23 22:30   ` Chong Yidong
2008-02-23 22:33   ` David Kastrup [this message]
2008-02-24  4:16     ` Eli Zaretskii
2008-02-24 14:36   ` Jason Rumney
2008-02-24 15:39     ` Stefan Monnier
2008-02-24 15:44       ` Miles Bader
2008-02-24 16:01         ` Jason Rumney
2008-02-24 19:44           ` Eli Zaretskii
2008-02-24 20:41         ` Stefan Monnier
2008-02-25 10:57           ` Richard Stallman
2008-02-25 15:57             ` Stefan Monnier
2008-02-26 12:36               ` Richard Stallman
2008-02-24 19:43       ` Eli Zaretskii
2008-02-24 23:04       ` Richard Stallman
2008-02-24 23:44         ` Jason Rumney
2008-02-25 19:01           ` Richard Stallman
2008-02-25 23:58             ` Jason Rumney
2008-02-26  1:57               ` Stefan Monnier
2008-02-26  3:41                 ` Chong Yidong
2008-02-26  4:53                   ` Stefan Monnier
2008-02-26  9:07                   ` Jason Rumney
2008-02-26  9:39                 ` Jason Rumney
2008-02-26 15:18                   ` Stefan Monnier
2008-02-24 22:30     ` Richard Stallman
2008-02-24 15:23   ` Richard Stallman
2008-02-24 20:01     ` Eli Zaretskii
2008-02-25 10:57       ` Richard Stallman
2008-02-25 20:04         ` Eli Zaretskii
2008-02-25 20:52           ` Andreas Schwab

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=85oda71exn.fsf@lola.goethe.zz \
    --to=dak@gnu.org \
    --cc=cyd@stupidchicken.com \
    --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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).