--- Begin Message ---
Subject: |
24.3.50; crash when multibyte directory name completion. |
Date: |
Mon, 24 Dec 2012 10:25:30 +0900 |
User-agent: |
Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (windows-nt) |
I encounter Emacs crash when I try to complete directory with multibyte
name. I attach `bt full` output.
This is my reproduce steps.
1. mkdir /tmp/aあb
2. In Emacs, M-x find-file, input '/tmp/a', then hit TAB.
mini-buffer shows "Find file: ....//tmp/aあb/".
3. Hit return key.
GNU Emacs 24.3.50.1 (i386-mingw-nt6.1.7601)
Bzr revision: 111247 address@hidden
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Important settings:
value of $LANG: ja_JP.SJIS
locale-coding-system: cp932
default enable-multibyte-characters: t
bt_full
Description: Binary data
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#13262: 24.3.50; crash when multibyte directory name completion. |
Date: |
Mon, 24 Dec 2012 18:21:45 +0200 |
> From: Stefan Monnier <address@hidden>
> Date: Mon, 24 Dec 2012 00:10:41 -0500
> Cc: address@hidden
>
> > GNU Emacs 24.3.50.1 (i386-mingw-nt6.1.7601)
>
> Thanks. Can you reproduce this in the current pretest (24.2.91)?
Yes, he could, until revision 111077 on the emacs-24 branch fixed that
(I think).
Sorry, the changes touch quite a few places, but they all had the same
problem: unwarranted assumptions that input Lisp strings passed to
primitives are multibyte. The crash happened because file completion
calls directory-file-name with a unibyte string (an encoded file
name). A similar mess was found and fixed in file-name-directory and
in expand-file-name.
--- End Message ---