To: xemacs-beta(a)xemacs.org
Subject: dired fails with some locales
--text follows this line--
Dear Bug Team!
In dired mode, the up/down cursor key was putting the cursor at the
start of each line, instead of at the filename. Pressing ENTER (even
when I manually positioned the cursor to the start of the filename
part) resulted in the error 'No file on line'.
For reasons unknown to me, the 'ls -l' command is outputting file mod
times with dates formatted as 'mm-dd' (eg 08-23), instead of the usual
'MMM dd' (eg Aug 23).
Took me a few hours to discover that this was why dired was failing.
Example output from my system's 'ls -s' follows:
drwxr-xr-x 2 root root 4096 08-18 00:14 bin
drwxr-xr-x 2 root root 4096 08-18 00:14 cgi-bin
drwxr-xr-x 2 root root 4096 08-18 01:33 conf
After some study of dired.el, I found the regexp for matching
filenames in dired listings, 'dired-re-month-and-time'.
My fix is a bit yuck, but it works. Should be usable as a starting
point for an official xemacs package maintainer to do it right.
Hack dired.el, near line 791 (where dired-re-month-and-time gets set)
Change
(date-month (concat "\\(" date " " month "\\)")))
to:
(date-month (concat "\\(" date " " month "\\)"))
(date-date (concat "\\(" date "\-" date "\\)")))
Then, delete dired.elc (or byte-recompile dired.el)
After restarting Xemacs, dired should then work nicely!
Cheers
David McNab
================================================================
System Info to help track down your bug:
---------------------------------------
uname -a: Linux rebirth 2.4.19-gentoo-r7 #7 SMP Sun Aug 18 16:58:29 NZST
2002 i686 AuthenticAMD
./configure '--with-x' '--with-xpm' '--with-dragndrop'
'--with-gif=no'
'--with-tiff' '--with-jpeg' '--without-xface'
'--with-dialogs=lucid'
'--with-widgets=lucid' '--with-scrollbars=lucid'
'--with-menubars=lucid'
'--with-gpm' '--with-postgresql' '--without-mule'
'--with-sound=native,esd' '--prefix=/usr'
'--with-database=gnudbm'
'--with-pop' '--with-ncurses' '--with-site-lisp=yes'
'--package-path=/usr/lib/xemacs/xemacs-packages/' '--with-msw=no'
XEmacs 21.4.8 "Honest Recruiter" configured for `i686-pc-linux'.
Compilation / Installation:
Source code location:
/var/tmp/portage/xemacs-21.4.8-r3/work/xemacs-21.4.8
Installation prefix: /usr
Operating system description file: `s/linux.h'
Machine description file: `m/intel386.h'
Compiler: gcc -march=i686 -O3 -pipe
-fomit-frame-pointer -funroll-loops
Relocating allocator for buffers: no
GNU version of malloc: yes
- Using Doug Lea's new malloc from the GNU C Library.
Linking with `-z nocombreloc'.
- Consider configuring with --pdump.
Window System:
Compiling in support for the X window system:
- X Windows headers location: /usr/X11R6/include
- X Windows libraries location: /usr/X11R6/lib
- Handling WM_COMMAND properly.
Using Lucid menubars.
Using Lucid scrollbars.
Using Motif dialog boxes.
Using Motif native widgets.
TTY:
Compiling in support for ncurses.
Compiling in support for GPM (General Purpose Mouse).
Images:
Compiling in support for XPM images.
Compiling in support for PNG images.
Compiling in support for JPEG images.
Compiling in support for TIFF images.
Sound:
Compiling in support for sound (native).
Compiling in support for ESD (Enlightened Sound Daemon).
Databases:
Compiling in support for GNU DBM.
Compiling in support for PostgreSQL.
- Using PostgreSQL header file: libpq-fe.h
- Using PostgreSQL V7 bindings.
Internationalization:
Mail:
Compiling in support for POP mail retrieval.
Compiling in support for "dot-locking" mail spool file locking method.
Other Features:
Inhibiting IPv6 canonicalization at startup.
Compiling in support for dynamic shared object modules.
Load-Path Lisp Shadows:
----------------------
nil
Installed XEmacs Packages:
-------------------------
((zenirc:version 1.13 :type regular)
(xslide :version 1.01 :type regular)
(xemacs-devel :version 1.43 :type single-file)
(xemacs-base :version 1.61 :type regular)
(w3 :version 1.22 :type regular)
(vm :version 7.03 :type regular)
(viper :version 1.33 :type regular)
(view-process :version 1.11 :type regular)
(vhdl :version 1.15 :type regular)
(vc-cc :version 1.18 :type regular)
(vc :version 1.3 :type regular)
(tpu :version 1.12 :type regular)
(tooltalk :version 1.13 :type regular)
(tm :version 1.32 :type regular)
(time :version 1.11 :type regular)
(textools :version 1.12 :type regular)
(text-modes :version 1.4 :type single-file)
(texinfo :version 1.2 :type regular)
(supercite :version 1.19 :type regular)
(strokes :version 1.08 :type regular)
(speedbar :version 1.23 :type regular)
(sounds-wav :version 1.1 :type regular)
(sounds-au :version 1.1 :type regular)
(slider :version 1.13 :type regular)
(sieve :version 1.02 :type regular)
(sh-script :version 1.14 :type regular)
(sgml :version 1.08 :type regular)
(semantic :version 1.12 :type regular)
(scheme :version 1.11 :type regular)
(rmail :version 1.13 :type regular)
(reftex :version 1.25 :type regular)
(psgml :version 1.27 :type regular)
(ps-print :version 1.03 :type regular)
(prog-modes
:version
1
.53
:type
single-file)
(pcomplete :version 1.01 :type regular)
(pcl-cvs :version 1.6 :type regular)
(pc :version 1.21 :type single-file)
(os-utils :version 1.26 :type single-file)
(net-utils :version 1.24 :type single-file)
(mmm-mode :version 1.0 :type regular)
(misc-games :version 1.15 :type single-file)
(mine :version 1.14 :type regular)
(mh-e :version 1.14 :type regular)
(mew :version 1.17 :type regular)
(mailcrypt :version 2.11 :type regular)
(mail-lib :version 1.44 :type regular)
(liece :version 1.02 :type regular)
(jde :version 1.34 :type regular)
(ispell :version 1.24 :type regular)
(ilisp :version 1.2 :type regular)
(igrep :version 1.08 :type regular)
(idlwave :version 1.25 :type regular)
(ibuffer :version 1.04 :type regular)
(hm--html-menus :version 1.18 :type regular)
(gnus :version 1.59 :type regular)
(gnats :version 1.14 :type regular)
(games :version 1.13 :type regular)
(fsf-compat :version 1.11 :type single-file)
(frame-icon :version 1.09 :type regular)
(forms :version 1.14 :type regular)
(footnote :version 1.14 :type regular)
(eudc :version 1.36 :type regular)
(eterm :version 1.13 :type regular)
(eshell :version 1.03 :type regular)
(emerge :version 1.09 :type regular)
(elib :version 1.1 :type single-file)
(eieio :version 1.02 :type regular)
(efs :version 1.28 :type regular)
(edt :version 1.12 :type regular)
(edit-utils :version 1.82 :type single-file)
(ediff :version 1.39 :type regular)
(edebug :version 1.14 :type regular)
(dired :version 1.12 :type regular)
(debug :version 1.14 :type regular)
(crisp :version 1.12 :type regular)
(cookie :version 1.14 :type regular)
(clearcase :version 1.03 :type regular)
(cc-mode :version 1.27 :type regular)
(calendar :version 1.18 :type regular)
(calc :version 1.19 :type regular)
(c-support :version 1.16 :type single-file)
(build :version 1.05 :type regular)
(bbdb :version 1.2 :type regular)
(auctex :version 1.3 :type regular)
(apel :version 1.21 :type regular)
(ada :version 1.1 :type regular))
Features:
--------
(mail-abbrevs xemacsbug shadow sendmail rfc822 edmacro lazy-lock
scroll-in-place rsz-minibuf func-menu font-lock filladapt crypt
crypt++ completer efs-cu efs-x19.15 efs-fnh efs-ovwrt efs-auto
cus-face dired-faces dired-xemacs dired pending-del zenirc-autoloads
xslide-autoloads xemacs-devel-autoloads xemacs-base-autoloads
w3-autoloads vm-autoloads viper-autoloads view-process-autoloads
vhdl-autoloads vc-cc-autoloads vc-autoloads tpu-autoloads
tooltalk-autoloads tm-autoloads time-autoloads textools-autoloads
text-modes-autoloads texinfo-autoloads supercite-autoloads
strokes-autoloads speedbar-autoloads sounds-wav-autoloads
sounds-au-autoloads slider-autoloads sieve-autoloads
sh-script-autoloads sgml-autoloads semantic-autoloads scheme-autoloads
rmail-autoloads reftex-autoloads psgml-autoloads ps-print-autoloads
prog-modes-autoloads pcomplete-autoloads pcl-cvs-autoloads
pc-autoloads os-utils-autoloads net-utils-autoloads mmm-mode-autoloads
misc-games-autoloads mine-autoloads mh-e-autoloads mew-autoloads
mailcrypt-autoloads mail-lib-autoloads liece-autoloads jde-autoloads
ispell-autoloads ilisp-autoloads igrep-autoloads idlwave-autoloads
ibuffer-autoloads hm--html-menus-autoloads gnus-autoloads
gnats-autoloads games-autoloads fsf-compat-autoloads
frame-icon-autoloads forms-autoloads footnote-autoloads eudc-autoloads
eterm-autoloads eshell-autoloads emerge-autoloads elib-autoloads
eieio-autoloads efs-autoloads edt-autoloads edit-utils-autoloads
ediff-autoloads edebug-autoloads dired-autoloads debug-autoloads
crisp-autoloads cookie-autoloads clearcase-autoloads cc-mode-autoloads
calendar-autoloads calc-autoloads c-support-autoloads build-autoloads
bbdb-autoloads auctex-autoloads apel-autoloads ada-autoloads
lisp-autoloads loadhist auto-show fontl-hooks x-iso8859-1 gutter-items
menubar-items x-menubar mode-motion mouse itimer auto-save lisp-mode
easymenu iso8859-1 page buff-menu lib-complete help-nomule cus-file
derived frame text-props obsolete cus-start custom widget cl-extra
mini-cl cl cl-19 packages backquote very-early-lisp postgresqlv7
postgresql lucid-scrollbars cut-buffer lucid-menubars motif-dialogs x
c-balloon-help tty-frames tty toolbar esd-sound native-sound scrollbar
unix-processes multicast network-streams subprocesses modules
menu-accelerator-support menubar dbm md5 xemacs gutter tiff png jpeg
xpm xbm lisp-float-type linux dialog devices window-system base64)
Recent keystrokes:
-----------------
M-x r e p o r t - x e m SPC SPC RET
Recent messages (most recent first):
-----------------------------------
Loading xemacsbug...done
Loading xemacsbug...
Loading /home/david/.xemacs/mydefs.el...done
Loading edmacro...done
Loading edmacro...
Loading /home/david/.xemacs/mydefs.el...
Loading /home/david/.xemacs/custom.el...done
Loading /home/david/.xemacs/custom.el...
Loading lazy-lock...done
Loading lazy-lock...
Loading rsz-minibuf...done
Loading rsz-minibuf...
Loading cus-face...done
Loading cus-face...
Loading sounds...done
Loading sounds...
Loading sound...done
Loading sound...
Loading pending-del...done
Loading pending-del...
Show replies by date
Could you folks please do
M-x dired-report-bug
to direct a more detailed bug report to the appropriate place?
--
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla