Subject: Re: bug#18374: 24.3; term.el error when cd a directory with Chinese name

From: Thierry Volpiatto <[email-masked]>
Date: Mon, 01 Sep 2014 06:21:09 +0200

Rangi Lin <[email-masked]> 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