From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [gmane.emacs.bugs] Emacs fails to start properly if the current working directory is on a vfat or ntfs filesystem Date: Sun, 24 Feb 2008 10:39:23 -0500 Message-ID: References: <877igvl4dn.fsf@stupidchicken.com> <47C180F9.2060901@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1203867646 18758 80.91.229.12 (24 Feb 2008 15:40:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 24 Feb 2008 15:40:46 +0000 (UTC) Cc: Eli Zaretskii , Chong Yidong , emacs-devel@gnu.org To: Jason Rumney Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 24 16:41:11 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JTIyU-0002nK-Oz for ged-emacs-devel@m.gmane.org; Sun, 24 Feb 2008 16:41:11 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JTIxz-0008VE-71 for ged-emacs-devel@m.gmane.org; Sun, 24 Feb 2008 10:40:39 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JTIxv-0008T8-Cp for emacs-devel@gnu.org; Sun, 24 Feb 2008 10:40:35 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JTIxt-0008SG-Uh for emacs-devel@gnu.org; Sun, 24 Feb 2008 10:40:35 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JTIxt-0008S3-Qs for emacs-devel@gnu.org; Sun, 24 Feb 2008 10:40:33 -0500 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JTIxm-0003VQ-JY; Sun, 24 Feb 2008 10:40:26 -0500 Original-Received: from ceviche.home (vpn-132-204-232-101.acd.umontreal.ca [132.204.232.101]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id m1OFeWvV013539; Sun, 24 Feb 2008 10:40:32 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id 80C00B41A8; Sun, 24 Feb 2008 10:39:23 -0500 (EST) In-Reply-To: <47C180F9.2060901@gnu.org> (Jason Rumney's message of "Sun, 24 Feb 2008 14:36:41 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) X-NAI-Spam-Score: -2.5 X-NAI-Spam-Rules: 2 Rules triggered BAYES_00=-2.5, HAS_X_HELO=0 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:90237 Archived-At: >>> 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? > Alternatively, we could limit the filenames we generate for autosaving the > scratch buffer (and any others like it) to use characters that are valid on > all the filesystems we know about. That's indeed what we should do. If and when we ever get support for filesystem-knowledge in the code, we may revisit this choice, but for now, please someone change the code that auto-generates those filenames to avoid characters known to be problematic. Or better yet: to only use those chars expected to be always work. Stefan