Ken Takata wrote:
> I found some more UTF-8 issues and I wrote additional patches to fix them.
>
> 2013/08/10 Sat 9:57:31 UTC+9 Ken Takata wrote:
> > * fname_case()
> > I think this should be fixed. Currently the case of a filename is not
> > set properly.
>
> Fixed with this patch:
> https://bitbucket.org/k_takata/vim-win32-mq/src/96100afa35da7d0f5c0ac51ebad436083bf701a3/fix-utf8-fname_case.patch
>
> > * mch_nodetype()
> > I'm not sure this should be fixed. This doesn't seem to cause an obvious
> > problem.
>
> Now I think it is better to fix this. I also found another issue related
> to mch_nodetype().
> mch_nodetype() is intended to be called by readfile() in fileio.c, but
> actually it is not called because a #if block for Windows is inside of
> a '#ifdef UNIX' block!! Because of this, the 'opendevice' option doesn't
> work when opening a device file.
>
> Fixed with these patches:
> https://bitbucket.org/k_takata/vim-win32-mq/src/5ac9bea8445125dddf03f6980bdb4f39ba1ce265/fix-device-check-on-Windows.patch
> https://bitbucket.org/k_takata/vim-win32-mq/src/54bcdfe31710bfc3019fdf848b7bff60b498deea/fix-utf8-nodetype.patch
>
> * mch_isFullName() and vim_stat() in os_mswin.c
> Buffer size is not enough for UTF-8.
> WinNT and later can use _MAX_PATH wide characters for a pathname, which
> means that the maximum pathname is _MAX_PATH * 3 bytes when 'enc' is UTF-8,
> but currently the size is _MAX_PATH bytes. (When a UTF-16 code unit is
> converted to UTF-8, the size becomes 1 to 3 bytes. For a surrogate pair,
> two UTF-16 code units are converted to a 4-byte UTF-8 character.)
>
> Fixed with this patch:
> https://bitbucket.org/k_takata/vim-win32-mq/src/98d42e4cde77d200ededbbd14e71f60f6705ff98/fix-utf8-buffer-length.patch
>
> * mch_resolve_shortcut() in os_mswin.c
> Wide APIs are not used.
>
> Fixed with this patch:
> https://bitbucket.org/k_takata/vim-win32-mq/src/98d42e4cde77d200ededbbd14e71f60f6705ff98/fix-utf8-mch_resolve_shortcut.patch
Thanks, I'll put them all in the todo list.
--
hundred-and-one symptoms of being an internet addict:
106. When told to "go to your room" you inform your parents that you
can't...because you were kicked out and banned.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
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/groups/opt_out.