From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.bugs Subject: Re: Apprent bug in directory-files-and-attributes Date: Tue, 17 Feb 2004 16:20:36 -0700 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <4032A1C4.6030007@yahoo.com> References: <200402162019.i1GKJbWo001490@ushabti.sfbay.sun.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1077060123 8435 80.91.224.253 (17 Feb 2004 23:22:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 17 Feb 2004 23:22:03 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 18 00:21:58 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AtEXO-0001km-00 for ; Wed, 18 Feb 2004 00:21:58 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AtEX1-0007i9-Sp for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Feb 2004 18:21:35 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AtEWy-0007dS-Jc for bug-gnu-emacs@gnu.org; Tue, 17 Feb 2004 18:21:32 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AtEWP-0006i4-Jr for bug-gnu-emacs@gnu.org; Tue, 17 Feb 2004 18:21:29 -0500 Original-Received: from [80.91.224.249] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AtEW7-00060m-D2 for bug-gnu-emacs@gnu.org; Tue, 17 Feb 2004 18:20:39 -0500 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AtEW4-00035X-00 for ; Wed, 18 Feb 2004 00:20:36 +0100 Original-Received: from 170.207.51.80 ([170.207.51.80]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue Feb 17 23:20:36 2004 Original-Received: from ihs_4664 by 170.207.51.80 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue Feb 17 23:20:36 2004 X-Injected-Via-Gmane: http://gmane.org/ Original-To: bug-gnu-emacs@gnu.org Original-Lines: 23 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 170.207.51.80 User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 X-Accept-Language: en-us X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:6993 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:6993 Whitfield Diffie wrote: > I have a case in which directory-files-and-attributes returns a list > in which some entries are of the form (), i.e., the attributes > portion is nil. I believe the filename portion is correct. > > Unfortunately, this is a directory of files with very ill-behaved > names. The names were manufactured from the `from addresses' of incoming > spam. As far as I can tell, however, the directory itself is well formed > and the files actually exist. > > I conjecture that diectory-files-and-attributes has been implemented by > calling directory-files and then applying file-attributes to each element > of this list. Certainly file-attributes (or file-exists-p) fails to find > the files under any encoding I can think to apply. Including mule-utf-8? I saved your from-logs-1.tar attachment and visited it in Emacs 21.3 (emacs -q --no-site-file) via `C-x RET c mule-utf-8 RET C-x C-f'. All the file names except the last (the one that ends with "mms02es.mms.us.syntegra.com") were readable. -- Kevin Rodgers