From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Thierry Vignaud Newsgroups: gmane.emacs.bugs Subject: [BUG] emacs-21.3 dired-move-to-filename is confused by locales that've quote in month names Date: Thu, 26 Jun 2003 05:29:12 +0200 Organization: MandrakeSoft Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1056598765 29527 80.91.224.249 (26 Jun 2003 03:39:25 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 26 Jun 2003 03:39:25 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 26 05:39:23 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19VNbX-0007g6-00 for ; Thu, 26 Jun 2003 05:39:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19VNaD-0007Vv-81 for gnu-bug-gnu-emacs@m.gmane.org; Wed, 25 Jun 2003 23:38:01 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19VNZ3-0006XH-32 for bug-gnu-emacs@gnu.org; Wed, 25 Jun 2003 23:36:49 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19VNXJ-0005nl-0G for bug-gnu-emacs@gnu.org; Wed, 25 Jun 2003 23:35:04 -0400 Original-Received: from office.mandrakesoft.com ([195.68.114.34] helo=vador.mandrakesoft.com) by monty-python.gnu.org with esmtp (Exim 4.20) id 19VNS6-0003P3-9T for bug-gnu-emacs@gnu.org; Wed, 25 Jun 2003 23:29:38 -0400 Original-Received: from vador.mandrakesoft.com (localhost [127.0.0.1]) by vador.mandrakesoft.com (Postfix) with ESMTP id EF5371C2A8; Thu, 26 Jun 2003 05:29:12 +0200 (CEST) Original-To: bug-gnu-emacs@gnu.org, Sebastian Kremer X-URL: List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:5396 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:5396 Hi. I'm the emacs packager in the Mandrake Linux distro. i've find out that emacs-21.3 dired mode (really dired-move-to-filename) is confused by locales that've quotes in month names. this bug has been seen on ix86 machines running mandrake linux 9.1 and mandrake linux cooker. the following packages were installed on these machines: tv@du ~ $ rpm -q glibc locales{,-br} emacs glibc-2.3.2-4mdk locales-2.3.2-2mdk locales-br-2.3.2-2mdk emacs-21.3-5mdk locale was configured as tv@du ~ $ cat .i18n LC_TELEPHONE=br_FR LC_PAPER=br_FR LC_NAME=br_FR LC_CTYPE=br_FR LANGUAGE=br:fr_FR:fr LC_NUMERIC=br_FR LC_MEASUREMENT=br_FR LC_MONETARY=br_FR LC_TIME=br_FR LANG=br_FR LC_IDENTIFICATION=br_FR LC_ADDRESS=br_FR LC_MESSAGES=br_FR Description: ============ emacs dired mode is confused when file date is displayed in locales that have non alphabetic characters. eg: i use breton locale (locale used in britanny, west area of france) where February localized name is C'Hwevrer (C'H being a character of the breton alphabet, noted as the three charaters "c", "'" and "h"). the problem is that the "'" single quote character confuse dired mode English month | breton month --------------+------------- January | Genver February | C'hwevrer March | Meurzh April | Ebrel May | Mae June | Mezheven July | Gouere August | Eost September | Gwengolo October | Here November | Du December | Kerzu How to reproduce ================ - locate a file dating from february, or alter the system clock to return back to february and touch a file to date it from february - run "LC_TIME=br emacs" (you need the /usr/share/locale/br/LC_TIME file from glibc locales) - open the directory where there's a "last altered in february" file - try to open it in dired mode by typing enter on it eg, when i open on my local hard disk the /pub/bzh.me/keltia/ directory, emacs open a dired buffer whose content is: >===============================================================================> > /pub/bzh.me/keltia: > > used 340 available 6814708 > > drwxr-xr-x 9 tv tv 4096 Eve 8 16:43 . > > drwxr-xr-x 15 tv tv 4096 Eve 6 10:31 .. > > drwxr-xr-x 4 tv tv 4096 Eve 8 16:45 1 > > drwxrwxr-x 2 tv tv 4096 Meu 18 2002 css > > -rw-r--r-- 1 tv tv 350 Mae 14 2002 DEBILE > > drwxr-xr-x 5 tv tv 4096 Gwe 22 2001 eXtrans-1.2.0 > > -rw-rw-r-- 1 tv tv 129 C'hw 25 2002 FAMILLE > > -rw-r--r-- 1 tv tv 22186 C'hw 13 2002 fortunes-brt.tar.bz2 > > drwxr-xr-x 7 tv tv 4096 Mae 10 2001 IPROtools > > drwxr-xr-x 8 tv tv 4096 Eve 8 16:28 keltia > > drwxr-xr-x 9 tv tv 4096 Eve 8 12:46 keltia.oldw3 > > -rw-r--r-- 1 tv tv 224531 Eve 4 16:03 klt.diff > > -rw-r--r-- 1 tv tv 115 Ebr 21 2002 mail > > -rw-r--r-- 1 tv tv 61 C'hw 13 2002 Makefile > > -rw-r--r-- 1 tv tv 390 Gwe 21 2002 notes > > -rw-r--r-- 1 tv tv 74 Gwe 21 2002 NOTES > > -rw-r--r-- 1 tv tv 8538 Eve 3 17:44 o > > drwxr-xr-x 3 tv tv 4096 Eve 26 2001 old > > -rw-r--r-- 1 tv tv 117 Eve 6 2002 quota > > -rw-r--r-- 1 tv tv 6655 C'hw 21 2002 quotes.en > > -rw-r--r-- 1 tv tv 502 C'hw 13 2002 style.css > > -rw-r--r-- 1 tv tv 90 C'hw 13 2002 TAILLE > >===============================================================================> when i scroll the files through the down key, the cursor is on the first letter of the file name. but when i go on Makefile entry, the cursor goes at the beginning of the line instead of goring on the first "M" of Makefile. when i type , emacs display "No file on this line" in the minibuffer window and "dired-move-to-filename: No file on this line" is inserted in the *Messages* buffer. obviously, dired seems confused because of the single quote in the date field that prevent it to parse the Makefile file line in the dired buffer if your system does not have the britton locale (iso code lang code being "br"[0]), you can get it from glibc sources [0] "br" lang code is not the brasilian portuguese code which is pt_br (but "br" country code does be the brasil one)