Hi Tony,

2013/08/31 Sat 12:33:38 UTC+9 Tony Mechelynck wrote:
> Note: Unicode codepoints above U+FFFF require 4 bytes each in UTF-8. Up 
> to U+10FFFF they can be represented in UTF-16 by means of a surrogate 
> pair (two 16-bit words). I don't know how frequent those "high" 
> codepoints are in practice. IIUC some of them are "rare" hanzi/kanji 
> still used in Chinese and/or Japanese family names. If they are each 
> counted by Windows as "two characters" for the purpose of determining if 
> _MAX_PATH has been exceeded then the above logic is correct.

As I mentioned in my previous message, a surrogate pair (two code units)
is counted as "two characters".
https://groups.google.com/d/msg/vim_dev/UsAv0LIIEug/Ux4KcVC9dWsJ
So the size "_MAX_PATH * 3 + 1" is enough.

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/groups/opt_out.

Raspunde prin e-mail lui