[PATCH] dired with locales with time given as %H.%S

Mats Lidell matsl at xemacs.org
Fri Oct 20 17:22:33 EDT 2006


Hi,

I think I might have seen something about a dired FSF sync going on
which might make this patch utterly useless. That would be great! 
There seems to be a new approach in CVS to find the filenames in the
ls listing without depending on the locale specific things there.

Anyway. After using (setenv "LANG" "C") in .emacs for a very long time
I have now been able to skip the special locale for XEmacs and now
uses the same locale, sv_SE.UTF-8, as the rest of the system (More on
that in another thread.) What it all came down to is that dired
assumes that time is given with hours and minutes separated by a
colon, ':', which it isn't in my locale.

"cvs diff" in /src/xemacs/packages/xemacs-packages/dired/

Index: dired.el
===================================================================
RCS file: /pack/xemacscvs/XEmacs/packages/xemacs-packages/dired/dired.el,v
retrieving revision 1.8
diff -r1.8 dired.el
810c810
< 	 (time "[ 012][0-9]:[0-6][0-9]")
---
> 	 (time "[ 012][0-9][.:][0-6][0-9]")

Yours
-- 
%% Mats



More information about the XEmacs-Patches mailing list