GNU bug report logs - #18374
24.3; term.el error when cd a directory with Chinese name

Previous Next

Package: emacs;

Reported by: Rangi Lin <rangiltw <at> gmail.com>

Date: Sun, 31 Aug 2014 23:33:01 UTC

Severity: normal

Found in version 24.3

Fixed in version 24.4

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 18374 in the body.
You can then email your comments to 18374 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#18374; Package emacs. (Sun, 31 Aug 2014 23:33:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Rangi Lin <rangiltw <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 31 Aug 2014 23:33:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Rangi Lin <rangiltw <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3; term.el error when cd a directory with Chinese name
Date: Sun, 31 Aug 2014 19:01:55 +0800
Steps to reproduce :

1. create a directory with Chinese name
        mkdir /tmp/測試

2. start emacs with `emacs -Q'

3. `M-x term'

4. inside term mode
        cd /tmp/測試

Result :

Debugger entered--Lisp error: (error "No such directory found via CDPATH 
environment variable")
  signal(error ("No such directory found via CDPATH environment variable"))
  error("No such directory found via CDPATH environment variable")
  cd("/tmp/\346\270\254\350\251\246")
  #[(string) "\306\232\203


It only happen if the directory is exist, for example :

    $ cd /tmp/測
    bash: cd: /tmp/測: No such file or directory

but not cd /tmp/測試

Rangi

In GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.10.7)
of 2014-03-08 on lamiak, modified by Debian
Windowing system distributor `The X.Org Foundation', version 11.0.11501000
System Description: Ubuntu 14.04.1 LTS

Configured using:
`configure '--build' 'x86_64-linux-gnu' '--build' 'x86_64-linux-gnu'
'--prefix=3D/usr' '--sharedstatedir=3D/var/lib' '--libexecdir=3D/usr/lib'
'--localstatedir=3D/var/lib' '--infodir=3D/usr/share/info'
'--mandir=3D/usr/share/man' '--with-pop=3Dyes'
'--enable-locallisppath=3D/etc/emacs24:/etc/emacs:/usr/local/share/emacs/2=
4.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.3/site-l= 

isp:/usr/share/emacs/site-lisp'
'--with-crt-dir=3D/usr/lib/x86_64-linux-gnu' '--with-x=3Dyes'
'--with-x-toolkit=3Dgtk3' '--with-toolkit-scroll-bars'
'build_alias=3Dx86_64-linux-gnu' 'CFLAGS=3D-g -O2 -fstack-protector
--param=3Dssp-buffer-size=3D4 -Wformat -Werror=3Dformat-security -Wall'
'LDFLAGS=3D-Wl,-Bsymbolic-functions -Wl,-z,relro'
'CPPFLAGS=3D-D_FORTIFY_SOURCE=3D2''

Important settings:
value of $LC_CTYPE: zh_TW.UTF-8
value of $LC_MONETARY: zh_TW.UTF-8
value of $LC_NUMERIC: zh_TW.UTF-8
value of $LC_TIME: zh_TW.UTF-8
value of $LANG: en_US.UTF-8
value of $XMODIFIERS: @im=3Dgcin
locale-coding-system: utf-8-unix
default enable-multibyte-characters: t

Major mode: Fundamental

Minor modes in effect:
tooltip-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
buffer-read-only: t
line-number-mode: t
transient-mark-mode: t

Recent input:
M-x b u g <tab> <tab> <backspace> <backspace> <backspace>=20
<backspace> <backspace> <backspace> <backspace> <backspace>=20
<backspace> <backspace> <backspace> <backspace> <backspace>=20
<backspace> e m <tab> <tab> <backspace> <backspace>=20
r e p o <tab> r t - e m <tab> <return>

Recent messages:
Loading 00debian-vars...done
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...
Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source)...
Error while loading 50dictionaries-common: Symbol's value as variable is 
vo=
id: debian-aspell-only-dictionary-alist
For information about GNU Emacs and the GNU system, type C-h C-a.
Making completion list... [3 times]

Load-path shadows:
/usr/share/emacs/24.3/site-lisp/debian-startup hides 
/usr/share/emacs/site-=
lisp/debian-startup

Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util
mail-prsvr mail-utils help-mode easymenu time-date china-util tooltip
ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd
fontset image regexp-opt fringe tabulated-list newcomment lisp-mode
register page menu-bar rfn-eshadow timer select scroll-bar mouse
jit-lock font-lock syntax facemenu font-core frame cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev
minibuffer loaddefs button faces cus-face macroexp files text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process dbusbind
dynamic-setting system-font-setting font-render-setting move-toolbar gtk
x-toolkit x multi-tty emacs)





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18374; Package emacs. (Mon, 01 Sep 2014 04:22:01 GMT) Full text and rfc822 format available.

Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Thierry Volpiatto <thierry.volpiatto <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#18374: 24.3;
 term.el error when cd a directory with Chinese name
Date: Mon, 01 Sep 2014 06:21:09 +0200
Rangi Lin <rangiltw <at> gmail.com> writes:

> Steps to reproduce :
>
> 1. create a directory with Chinese name
>         mkdir /tmp/測試
>
> 2. start emacs with `emacs -Q'
>
> 3. `M-x term'
>
> 4. inside term mode
>         cd /tmp/測試
>
> Result :
>
> Debugger entered--Lisp error: (error "No such directory found via
> CDPATH environment variable")

This is fixed in emacs-24.4, in emacs-24.3 add to .emacs:

(defadvice term-command-hook (before decode-string)
  (setq string (decode-coding-string string locale-coding-system)))

(when (version< emacs-version "24.3.50.1") (ad-activate 'term-command-hook))

-- 
Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997 





bug marked as fixed in version 24.4, send any further explanations to 18374 <at> debbugs.gnu.org and Rangi Lin <rangiltw <at> gmail.com> Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Mon, 01 Sep 2014 17:22:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 30 Sep 2014 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 10 years and 349 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.