[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Apprent bug in directory-files-and-attributes
From: |
Kevin Rodgers |
Subject: |
Re: Apprent bug in directory-files-and-attributes |
Date: |
Tue, 17 Feb 2004 16:20:36 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 |
Whitfield Diffie wrote:
> I have a case in which directory-files-and-attributes returns a list
> in which some entries are of the form (<filename>), 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