diff options
author | Bram Moolenaar <Bram@vim.org> | 2005-03-04 23:39:37 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2005-03-04 23:39:37 +0000 |
commit | 19a09a189379659b917cf5ccff78f3e5ec061015 (patch) | |
tree | 806d594bf7af04ef956c0c96ad64adfcd96325dc /src/os_mswin.c | |
parent | 7383034c0ab657158c4c69146254beffdea4859e (diff) | |
download | vim-git-19a09a189379659b917cf5ccff78f3e5ec061015.tar.gz |
updated for version 7.0055v7.0055
Diffstat (limited to 'src/os_mswin.c')
-rw-r--r-- | src/os_mswin.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/os_mswin.c b/src/os_mswin.c index 4f3a49bef..5e96da8af 100644 --- a/src/os_mswin.c +++ b/src/os_mswin.c @@ -385,6 +385,7 @@ mch_FullName( else #endif { +#ifdef FEAT_MBYTE if (enc_codepage >= 0 && (int)GetACP() != enc_codepage # ifdef __BORLANDC__ /* Wide functions of Borland C 5.5 do not work on Windows 98. */ @@ -415,7 +416,6 @@ mch_FullName( vim_free(wname); vim_free(cname); } -#ifdef FEAT_MBYTE if (nResult == FAIL) /* fall back to non-wide function */ #endif { @@ -2487,8 +2487,13 @@ serverSendEnc(HWND target) COPYDATASTRUCT data; data.dwData = COPYDATA_ENCODING; +#ifdef FEAT_MBYTE data.cbData = STRLEN(p_enc) + 1; data.lpData = p_enc; +#else + data.cbData = STRLEN("latin1") + 1; + data.lpData = "latin1"; +#endif (void)SendMessage(target, WM_COPYDATA, (WPARAM)message_window, (LPARAM)(&data)); } |