all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Chong Yidong <cyd@stupidchicken.com>
Cc: eliz@gnu.org, emacs-devel@gnu.org, rms@gnu.org,
	Jason Rumney <jasonr@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: Mon, 25 Feb 2008 23:53:24 -0500	[thread overview]
Message-ID: <jwvwsosgw57.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87pruk9ygb.fsf@stupidchicken.com> (Chong Yidong's message of "Mon, 25 Feb 2008 22:41:08 -0500")

>>> Here is a patch against EMACS_22_BASE.
>> 
>> I'd rather use a less arbitrary scheme.  E.g.
>> - only accept unchanged safe chars (rather than rule out
>> dangerous ones), e.g. [:alnum:] and maybe a couple more.
>> - everything else encoded following quoted-printable.
>> 
>> Of course, QP applies to bytes, not to chars, which also points to
>> a potential problem with [:alnum:] since it includes multibyte chars
>> which may also be rejected, but I think that would be safe enough for
>> a start.

> What do you mean by quoted-printable?

QP uses "=NN" where NN is the hexadecimal code of the encoded byte.
Using "%NN" instead would work as well, of course.
Or maybe "%NNNN%" so as to accept arbitrary chars rather than just bytes.

> I was thinking that we could instead change all unsafe chars into the
> same character, e.g. an underscore.  I don't think there is much risk
> of name clashing (in the first place, we already use make-temp-file to
> generate a unique filename.)

That would be simpler, indeed.  But I cannot assess the risk and the
current code goes through some extra trouble to avoid name clashes, so
it seems safer to follow the original code's intention (and implicit
risk assessment).


        Stefan




  reply	other threads:[~2008-02-26  4:53 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
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 [this message]
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

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

  git send-email \
    --in-reply-to=jwvwsosgw57.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=cyd@stupidchicken.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=jasonr@gnu.org \
    --cc=rms@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.