[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
File name completion with non-ascii filenames
From: |
Niels Möller |
Subject: |
File name completion with non-ascii filenames |
Date: |
17 Dec 2001 16:44:45 +0100 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 |
I'm sorry this bug seems hard to reproduce; I tried creating a new
directory containing the file names that seemed relevant, and then the
bug didn't occur. Anyway, I'll describe the problem:
I have a directory, where "för" is a common prefix for a few file
names. There are no file names that start with "fö" without an "r"
following. Full directory listing is included below.
First, I start a fresh emacs with emacs -q --no-site-file. Next, I
type C-x C-f (find-file), and then I type "för". The minibuffer
displays
"Find file: ~/private/sonja/för"
Next I press TAB. The minibuffer changes to
"Find file: ~/private/sonja/fö"
I press TAB again. A *Completions* buffer pops up, displaying the
possible completions
: Click <mouse-2> on a completion to select it.
: In this buffer, type RET to select the completion near point.
:
: Possible completions are:
: förord.tex föräldrar-och-barn.aux
: föräldrar-och-barn.dvi föräldrar-och-barn.log
: föräldrar-och-barn.tex föräldrar-och-barn.txt
I would have expected emacs to give me the completions the first time
I pressed TAB, and that it would not delete the "r" from the prefix in
the minibuffer.
Details:
emacs-version: "GNU Emacs 21.1.1 (sparc-unknown-linux-gnu, X toolkit)
of 2001-10-22 on cuckoo"
(BTW, that's another odd bug: The output from M-x emacs-version
appeared in the message area, but it was not appended to the
*Messages* buffer. Only a single line "G" was inserted in *Messages*.
I had to type (emacs-version) in the *scratch*-buffer to be able to
copy it. This problem doesn't appear in an emacs started with -q
--no-site-file, though, so it might be a local error).
No special configure flags, and no modifications.
Locale settings:
LC_ALL= LC_COLLATE= LC_CTYPE=sv_SE.iso-8859-1 LC_MESSAGES= LC_TIME= LANG=C
(And that's a bug in the node "Checklist for Bug Reports" in the
manual, it says
echo LC_ALL=$LC_ALL LC_COLLATE=$LC_COLLATE LC_TYPE=$LC_TYPE \
LC_MESSAGES=$LC_MESSAGES LC_TIME=$LC_TIME LANG=$LANG
but the variable is not named "LC_TYPE", it's "LC_CTYPE").
The contents of the directory in question, as displayed by ls -al:
$ ls -al
total 297
-rw-r--r-- 1 nisse nisse 1567 Dec 17 15:31 #föräldrar-och-barn.tex#
drwxr-xr-x 5 nisse nisse 1024 Dec 17 15:31 .
lrwxrwxrwx 1 nisse nisse 38 Dec 17 15:18
.#föräldrar-och-barn.tex -> nisse@cuckoo.hack.org.17542:1007471266
drwxrwxr-x 5 nisse nisse 1024 Dec 13 14:34 ..
-rw-r--r-- 1 nisse nisse 148 Dec 13 17:02 .cvsignore
-rw-r--r-- 1 nisse nisse 5 Dec 13 17:02 .cvsignore~
drwxr-xr-x 2 nisse nisse 1024 Dec 17 14:59 CVS
-rw-r--r-- 1 nisse nisse 3491 Dec 13 14:16 Utan gemensamma
intressen.tex~
-rw-r--r-- 1 nisse nisse 2762 Dec 12 11:23 Utan gemensamma
intressen.txt
drwxr-xr-x 2 nisse nisse 1024 Dec 17 15:18 auto
-rw-r--r-- 1 nisse nisse 8068 Dec 17 15:18 förord.tex
-rw-r--r-- 1 nisse nisse 315 Dec 17 15:27 föräldrar-och-barn.aux
-rw-r--r-- 1 nisse nisse 12016 Dec 17 15:27 föräldrar-och-barn.dvi
-rw-r--r-- 1 nisse nisse 5192 Dec 17 15:27 föräldrar-och-barn.log
-rw-r--r-- 1 nisse nisse 1566 Dec 17 15:18 föräldrar-och-barn.tex
-rw-r--r-- 1 nisse nisse 167973 Dec 17 15:32 föräldrar-och-barn.txt
-rw-r--r-- 1 nisse nisse 857 Dec 17 14:35 garamond.sty
drwxr-xr-x 3 nisse nisse 1024 Dec 17 15:00 images
-rw-r--r-- 1 nisse nisse 552 Dec 17 15:08 macros.tex
-rw-r--r-- 1 nisse nisse 0 Dec 13 16:42 missfont.log
-rw-r--r-- 1 nisse nisse 718 Dec 13 14:37 texput.log
-rw-r--r-- 1 nisse nisse 26050 Dec 13 17:05
utan-gemensamma-intressen-cm.ps
-rw-r--r-- 1 nisse nisse 15382 Dec 13 17:04
utan-gemensamma-intressen-times.ps
-rw-r--r-- 1 nisse nisse 129 Dec 13 17:04
utan-gemensamma-intressen.aux
-rw-r--r-- 1 nisse nisse 4416 Dec 13 17:04
utan-gemensamma-intressen.dvi
-rw-r--r-- 1 nisse nisse 3419 Dec 17 14:37
utan-gemensamma-intressen.log
-rw-r--r-- 1 nisse nisse 15376 Dec 13 16:43
utan-gemensamma-intressen.ps
-rw-r--r-- 1 nisse nisse 3736 Dec 17 12:13
utan-gemensamma-intressen.tex
-rw-r--r-- 1 nisse nisse 3739 Dec 13 17:05
utan-gemensamma-intressen.tex.~1.2.~
-rw-r--r-- 1 nisse nisse 3480 Dec 13 14:37
utan-gemensamma-intressen.tex~
The filenames are plain iso-8859-1, I verified using
LC_CTYPE='' ls --escape
that there are no multibyte sequences or other strangeness going on.
Regards,
/Niels
- File name completion with non-ascii filenames,
Niels Möller <=