Ken Takata wrote:
> 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