Hi,

2012年12月17日月曜日 19時55分36秒 UTC+9 Ken Takata:
> Hi,
> 
> The current version of Vim uses an address of _errno which is exported by
> msvcrXX.dll to check the error code of (lib)iconv.dll.
> However the version (or name) of msvcrXX.dll is fixed at the compile time,
> we cannot use another version of iconv.dll which is linked against another
> version of msvcrXX.dll.
> 
> I wrote a patch which uses an address of _errno which is actually
> linked with the iconv.dll.
> https://gist.github.com/4292446
> 
> This patch uses a technique similar to API hooking.
> (Jeffrey Richter's "Windows via C/C++" has good information about
> API hooking.)

I found a typo in a comment in mbyte.c while I wrote the patch.

--- a/src/mbyte.c
+++ b/src/mbyte.c
@@ -3255,7 +3255,7 @@
 
 /*
  * Version of strnicmp() that handles multi-byte characters.
- * Needed for Big5, Sjift-JIS and UTF-8 encoding.  Other DBCS encodings can
+ * Needed for Big5, Shift-JIS and UTF-8 encoding.  Other DBCS encodings can
  * probably use strnicmp(), because there are no ASCII characters in the
  * second byte.
  * Returns zero if s1 and s2 are equal (ignoring case), the difference between

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

Raspunde prin e-mail lui