Hi,

2016/6/1 Wed 17:36:35 UTC+9 Yggdroot Chen wrote:
> Steps to reproduce:
> 1. Open vim in directory D:\中文\test\
> 2. Execute the following commands:
>     :py import os
>     :py os.chdir('..')
>   the change succeed, but raise an error:
> 
>     Traceback (most recent call last):
>       File "<string>", line 1, in <module>
>       vim.error: failed to change directory
>       Error detected while processing :
>       E344: Can't find directory "D:\<d6><d0><ce><c4>" in cdpath
> 
> PS:
> VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jan  2 2016 14:36:11)
>     MS-Windows 32-bit GUI version with OLE support
>     Included patches: 1-1023
>     Compiled by mool@tororo

It seems that it occurs when 'encoding' is changed from the default setting.
(E.g. set enc=utf-8 on Windows.)

The following patch should fix the problem:
https://bitbucket.org/k_takata/vim-ktakata-mq/src/1617abbf9424a3c8787677e071bb15b2930c6787/py2-chdir.patch

P.S. If you report a problem related to multibyte characters, it's better
to show your 'encoding' setting and your OS version.

Regards,
Ken Takata

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui