Mercurial > vim
comparison src/os_mswin.c @ 26:404aac550f35 v7.0017
updated for version 7.0017
author | vimboss |
---|---|
date | Thu, 07 Oct 2004 21:02:47 +0000 |
parents | 3f44e9abe4ec |
children | fdf55076c53f |
comparison
equal
deleted
inserted
replaced
25:8cde1a064c7c | 26:404aac550f35 |
---|---|
265 CharLowerBuff(tolower_tab, 256); | 265 CharLowerBuff(tolower_tab, 256); |
266 #else | 266 #else |
267 AnsiUpperBuff(toupper_tab, 256); | 267 AnsiUpperBuff(toupper_tab, 256); |
268 AnsiLowerBuff(tolower_tab, 256); | 268 AnsiLowerBuff(tolower_tab, 256); |
269 #endif | 269 #endif |
270 | |
271 #if defined(FEAT_MBYTE) && !defined(FEAT_GUI) | |
272 (void)get_cmd_argsW(NULL); | |
273 #endif | |
270 } | 274 } |
271 | 275 |
272 | 276 |
273 /* | 277 /* |
274 * Return TRUE if the input comes from a terminal, FALSE otherwise. | 278 * Return TRUE if the input comes from a terminal, FALSE otherwise. |
296 { | 300 { |
297 # ifdef FEAT_GUI_MSWIN | 301 # ifdef FEAT_GUI_MSWIN |
298 gui_mch_settitle(title, icon); | 302 gui_mch_settitle(title, icon); |
299 # else | 303 # else |
300 if (title != NULL) | 304 if (title != NULL) |
305 { | |
306 # ifdef FEAT_MBYTE | |
307 if (enc_codepage >= 0 && (int)GetACP() != enc_codepage) | |
308 { | |
309 /* Convert the title from 'encoding' to the active codepage. */ | |
310 WCHAR *wp = enc_to_ucs2(title, NULL); | |
311 int n; | |
312 | |
313 if (wp != NULL) | |
314 { | |
315 n = SetConsoleTitleW(wp); | |
316 vim_free(wp); | |
317 if (n != 0 || GetLastError() != ERROR_CALL_NOT_IMPLEMENTED) | |
318 return; | |
319 } | |
320 } | |
321 # endif | |
301 SetConsoleTitle(title); | 322 SetConsoleTitle(title); |
323 } | |
302 # endif | 324 # endif |
303 } | 325 } |
304 | 326 |
305 | 327 |
306 /* | 328 /* |