Saturday, March 22, 2014

Re: Can not open filenames with non-ascii characters on Windows

On 2014-03-19 07:45, David Balažic wrote:
> I used vim 7.3 and from today 7.4 on Windows 7 Pro SP1 64 bit.
>
> It seems it has problems opening files that have non-ascii
> characters in their names.
>
> For example:
> - I create file named testčšž.txt (in case this gets corrupted,
> that is testcsz.txt with caron on the c, s and z)
> - in Windows Explorer I right click the file and choose "Edit with
> Vim"
>
> Expected: the file is opened in GVIM
>
> Actual:
> - a new file is created/opened in GVIM
> The GVIM window title says testcšž.txt for filename (the č lost the
> caron), also the bottom of the window says:
> "C:\path\testcXX.txt" [New File]
>
> X are black squares

The black squares might just be font issues. As Yukihiro mentions,
check your 'guifont' setting and try a different font, or check your
encoding.

If it's not even able to find the file and open it correctly, another
possibility would be to use tab-expansion to let Vim populate the
filename with what it thinks the filename should be:

:e testc

and then hit <tab> once (or more, if you have multiple "testc*.txt"
files) to let Vim populate the filename with what it interprets.

-tim


--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: