From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Mattis Newsgroups: gmane.emacs.devel Subject: Re: Re: [brakjoller@gmail.com: setting utf-16 as file-name-coding-system locks up emacs] Date: Wed, 11 Aug 2004 12:59:04 +0200 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: References: <200408091228.VAA10104@etlken.m17n.org> <200408100133.KAA11854@etlken.m17n.org> <200408101058.TAA12976@etlken.m17n.org> <200408101144.UAA13100@etlken.m17n.org> <4118B90D.9060007@gnu.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1092221986 8715 80.91.224.253 (11 Aug 2004 10:59:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 11 Aug 2004 10:59:46 +0000 (UTC) Cc: emacs-devel@gnu.org, Kenichi Handa , Jason Rumney Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 11 12:59:36 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BuqpT-0006hV-00 for ; Wed, 11 Aug 2004 12:59:35 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BuqtK-0007XN-DO for ged-emacs-devel@m.gmane.org; Wed, 11 Aug 2004 07:03:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Buqt7-0007Ui-98 for emacs-devel@gnu.org; Wed, 11 Aug 2004 07:03:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Buqt5-0007Sk-E8 for emacs-devel@gnu.org; Wed, 11 Aug 2004 07:03:20 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Buqt5-0007SY-Ae for emacs-devel@gnu.org; Wed, 11 Aug 2004 07:03:19 -0400 Original-Received: from [216.239.56.245] (helo=mproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Buqoz-0004x1-VO for emacs-devel@gnu.org; Wed, 11 Aug 2004 06:59:06 -0400 Original-Received: by mproxy.gmail.com with SMTP id u33so28215cwc for ; Wed, 11 Aug 2004 03:59:04 -0700 (PDT) Original-Received: by 10.11.100.11 with SMTP id x11mr113254cwb; Wed, 11 Aug 2004 03:59:04 -0700 (PDT) Original-To: Stefan Monnier In-Reply-To: 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: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:26237 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:26237 > Yes, the problem is as follows: > > (file-exists-p "/home/mathias/.emacs.d/auto-save-list/") -> nil > > so make-directory decides the dir needs to be created, but he first checks > to see if the parent needs to be created as well: > > (file-exists-p "/home/mathias/.emacs.d/") -> nil > > so it tris to create the parent, check its own parent: > > (file-exists-p "/home/mathias/") -> nil > .... > (file-exists-p "/home/") -> nil > .... > (file-exists-p "/") -> nil > .... > (file-exists-p "/") -> nil > ... > because the parent of "/" is "/" and because after encoding in utf-16, > even "/" doesn't exist. > > Such an encoding is clearly completely wrong for such a system, so I'm not > sure how important it is to protect oneself against such situations. I see. But what if the test that file-exists-p does was to encode the "test-string" first in the same encoding? Or maybe this would be crazy, this isn't exactly my area of expertice. :) > After all, there are several other ways to screw oneself and this one is at > least reasonably easy to revert. Agree. Anyway, the conclusion of all this seems to be that Emacs is not 100 % ready for unicode yet so I have to avoid to try torture it with these in the meantime... :) /Mathias