I figure out this problem.

Argument argc/argv of main, this is expanded by runtime library. But ArglistW 
is stored string as same as given. So 

https://code.google.com/p/vim/source/browse/src/os_win32.c#6526

  if (STRCMP(global_argv[i], name) == 0)

This if-statement always fail because:

* global_argv[i] is "あ*" (not expanded)
* name is "あ.txt" (expaned)

So need to call get_cmd_argsW with pass argc/argv to overwrite them.
And I noticed missing freeing ArglistW.

https://gist.github.com/mattn/a628af2a16214367c41b

Thanks.
- Yasuhiro Matsumoto

-- 
-- 
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