bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Emacs 20.7 dired bug on AIX 4+


From: Sean Pfeiffer
Subject: Emacs 20.7 dired bug on AIX 4+
Date: Tue, 3 Apr 2001 15:22:34 -0400 (EDT)

We're running Emacs 20.7 on a cluster of IBM RS6000s running AIX 4+.
The dired.el shipped with 20.7 appears to have some serious problems
on our system.  If you try to access an older file through dired it
will return an error message indicating that the filename is invalid,
even though the file clearly exist.

I copied the dired.el file from Emacs 20.4 into the 20.7 tree and
recompiled, and it looks like this corrected the problem.  One of the
systems programmers here suggested that the problem may be that the
20.7 dired is failing to anticipate how AIX displays the date field
for older files, e.g.:

 -rw-------   1 user     group       184 Sep 28 1999  foo.sh

Note that there are two spaces after the year.  On a Solaris machine,
the extra space appears before the year rather than after it:

 -rw-------   1 user     group       184 Sep 28  1999 foo.sh

Note that we did configure Emacs 20.7 with the "rs6000-ibm-aix4" flag.

Here's a diff between the two dired.el files:

% diff dired.el.20.4 dired.el.20.7
220,221c220,223
< (defvar dired-re-dir (concat dired-re-maybe-mark dired-re-inode-size "d"))
< (defvar dired-re-sym (concat dired-re-maybe-mark dired-re-inode-size "l"))
---
> ;; The [^:] part after "d" and "l" is to avoid confusion with the
> ;; DOS/Windows-style drive letters in directory names, like in "d:/foo".
> (defvar dired-re-dir (concat dired-re-maybe-mark dired-re-inode-size "d[^:]"))
> (defvar dired-re-sym (concat dired-re-maybe-mark dired-re-inode-size "l[^:]"))
1359c1361,1363
<        (month (concat l l "+ *"))
---
>        ;; weiand: changed: month ends potentially with . or , or .,
> ;;old  (month (concat l l "+ *"))
>        (month (concat l l "+[.]?,? *"))
1367c1371,1372
<        (dd "[ 0-3][0-9]")
---
> ;;old  (dd "[ 0-3][0-9]")
>        (dd "[ 0-3][0-9][.]?")
1370c1375,1377
<                         s "\\(" HH:MM "\\|" s yyyy "\\|" yyyy s "\\)"))
---
>          ;; weiand: changed: year potentially unaligned
> ;;old                   s "\\(" HH:MM "\\|" s yyyy "\\|" yyyy s "\\)"))
>                         s "\\(" HH:MM "\\|" s "?" yyyy "\\|" yyyy s "\\)"

Thanks,

Sean Pfeiffer
Office of Information Technology
Boston University
address@hidden






reply via email to

[Prev in Thread] Current Thread [Next in Thread]