Hi,

2016/11/8 Tue 18:25:55 UTC+9 Axel Bender wrote:
> Hi Ken,
> 
> thanks for replying. As of your questions:
> 
> a) I can verify (procmon) that libicon-2.dll (64-bit) is loaded when 
> d:\gnu\mingw64 is in %PATH%.
> 
> b) has('iconv') prints "1" in that case.
> 
> When I remove d:\gnu\mingw64 from %PATH% (or change it to d:\gnu\mingw32), 
> has('iconv') shows "0", and the file's type is correctly identified ("latin1" 
> instead of "koi8-r").

Okay, understand.
This is because Vim cannot handle koi8-r when iconv is disabled. If 64-bit
libiconv-2.dll is not available in %PATH%, koi8-r might not be opened.
If libiconv-2.dll is available, Vim can handle koi8-r and Vim cannot
distinguish latin-1 from koi8-r, because the range of koi8-r code points
is wider than that of latin-1. 
So how about changing the order of fencs?
E.g.: set fileencodings=ucs-bom,utf-8,latin1,koi8-r

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