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

Bug#152843: dired fail in emacs20-dl with Japanese locale



Package: emacs20-dl
Version: 20.7-14.3

I use dired-mode on japanese environment.
From some time, a ls output format of japanese locale is changed on sid, 
then dired-mode fails.

ls format (LANG=ja_JP.eucJP)

before: 
   mm月dd yyyy or mm月dd HH:MM

now:
   yyyy-mm-dd or mm-dd HH:MM

emacs20 package may also have same bug.

so we should change dired.el. patch is follows:

--- dired.el.orig	Tue Nov 30 00:04:12 1999
+++ dired.el	Sat Jul 13 22:44:59 2002
@@ -1363,7 +1363,7 @@
 	 (month (concat l l "+[.]?,? *"))
 	 ;; Recognize any non-ASCII character.  
 	 ;; The purpose is to match a Kanji character.
-	 (k "[^\0-\177]")
+	 ;; (k "[^\0-\177]")
 	 ;; (k "[^\x00-\x7f\x80-\xff]")
 	 (s " ")
 	 (yyyy "[0-9][0-9][0-9][0-9]")
@@ -1375,7 +1375,7 @@
          ;; weiand: changed: year potentially unaligned
 ;;old			  s "\\(" HH:MM "\\|" s yyyy "\\|" yyyy s "\\)"))
 			  s "\\(" HH:MM "\\|" s "?" yyyy "\\|" yyyy s "\\)"))
-	 (japanese (concat mm k s dd k s "\\(" s HH:MM "\\|" yyyy k "\\)")))
+	 (japanese (concat "\\(" yyyy "-" mm "-" dd "\\|" mm "-" dd s HH:MM "\\)")))
 	 ;; The "[0-9]" below requires the previous column to end in a digit.
 	 ;; This avoids recognizing `1 may 1997' as a date in the line:
 	 ;; -r--r--r--   1 may      1997        1168 Oct 19 16:49 README


 


Hiroshi Miura  --- http://www.da-cha.org/ 
NTTDATA Corp. Marketing & Business Strategy Planning Dept. --- miurahr@nttdata.co.jp 
Key fingerprint = 9117 9407 5684 FBF1 4063  15B4 401D D077 04AB 8617
-- My hacking life is happy as the day is long






-- 
To UNSUBSCRIBE, email to debian-qa-packages-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: