In emacs on Windows 8.1 I can't open a file if its full name contains Russian letters [and generally any non-ascii char]. For example, if I try to open D:\ББББ\test.txt
I get:
I find a config which seems relevant:
(setq default-file-name-coding-system 'cp1251)
and also tried to set it to utf-8
-- but it doesn't help. I use same config as on linux where I never had problems like this.
Edit:
I'm using vanilla emacs 24.3 for windows and the issue is reproduced with emacs -Q
.
Edit 2:
I'm using English version of Windows:
PS D:\> reg query "hklm\system\controlset001\control\nls\language" /v Installlanguage
HKEY_LOCAL_MACHINE\system\controlset001\control\nls\language
Installlanguage REG_SZ 0409
(code 0409 means it is English). However other programs, e.g. notepad++, can open the file.
Edit 3:
Default code page is 437:
C:\chcp
Active code page: 437
and it doesn't have Russian chars.
Edit 4
Found an old thread -- seems like the problem is still there.
Edit 5:
Currently one can't open file with unicode in its full name using emacsclient. I'm using the following workaround in order to open files with unicode in their names in an opened emacs: one can use a custom multi-commander command:
I bind this to C-S-F4, and open dired in the respective folder, and browse to the file I want with dired. E.g. for d:\ББББ\test.txt I would open d:\ with C-S-F4 first, and browse to the test.txt with dired.