Hi,

2013/12/12 Thu 1:59:00 UTC+9 Bram Moolenaar wrote:
> Patch 7.4.122
> Problem:    Win32: When 'encoding' is set to "utf-8" and the active codepage
>           is cp932 then ":grep" and other commands don't work for multi-byte
>           characters.
> Solution:   (Yasuhiro Matsumoto)
> Files:            src/os_win32.c

After this patch, I got the following warnings when compiled with MSVC:

os_win32.c(3842) : warning C4090: 'function' : different 'const' qualifiers
os_win32.c(3856) : warning C4133: 'function' : incompatible types - from 
'STARTUPINFO *' to 'LPSTARTUPINFOW'
os_win32.c(3865) : warning C4090: 'function' : different 'const' qualifiers

Attached patch fixes them.

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.
# HG changeset patch
# Parent 7818ca6de3d07439571bc1fe788a3efff6979531
diff --git a/src/os_win32.c b/src/os_win32.c
--- a/src/os_win32.c
+++ b/src/os_win32.c
@@ -3830,7 +3830,7 @@
 
     static BOOL
 vim_create_process(
-    const char		*cmd,
+    char		*cmd,
     DWORD		flags,
     BOOL		inherit_handles,
     STARTUPINFO		*si,
@@ -3853,7 +3853,7 @@
 		flags,			/* Creation flags */
 		NULL,			/* Environment */
 		NULL,			/* Current directory */
-		si,			/* Startup information */
+		(LPSTARTUPINFOW)si,	/* Startup information */
 		pi);			/* Process information */
 	    vim_free(wcmd);
 	    return ret;

Raspunde prin e-mail lui