Mercurial > vim
comparison src/mbyte.c @ 23:3f44e9abe4ec v7.0015
updated for version 7.0015
author | vimboss |
---|---|
date | Mon, 06 Sep 2004 17:44:46 +0000 |
parents | 293621502c4d |
children | 404aac550f35 |
comparison
equal
deleted
inserted
replaced
22:cc049b00ee70 | 23:3f44e9abe4ec |
---|---|
424 && !defined(MACOS) | 424 && !defined(MACOS) |
425 # define LEN_FROM_CONV | 425 # define LEN_FROM_CONV |
426 vimconv_T vimconv; | 426 vimconv_T vimconv; |
427 char_u *p; | 427 char_u *p; |
428 #endif | 428 #endif |
429 #ifdef WIN32 | |
430 int prev_enc_utf8 = enc_utf8; | |
431 #endif | |
429 | 432 |
430 if (p_enc == NULL) | 433 if (p_enc == NULL) |
431 { | 434 { |
432 /* Just starting up: set the whole table to one's. */ | 435 /* Just starting up: set the whole table to one's. */ |
433 for (i = 0; i < 256; ++i) | 436 for (i = 0; i < 256; ++i) |
680 #if defined(HAVE_BIND_TEXTDOMAIN_CODESET) && defined(FEAT_GETTEXT) | 683 #if defined(HAVE_BIND_TEXTDOMAIN_CODESET) && defined(FEAT_GETTEXT) |
681 /* GNU gettext 0.10.37 supports this feature: set the codeset used for | 684 /* GNU gettext 0.10.37 supports this feature: set the codeset used for |
682 * translated messages independently from the current locale. */ | 685 * translated messages independently from the current locale. */ |
683 (void)bind_textdomain_codeset(VIMPACKAGE, | 686 (void)bind_textdomain_codeset(VIMPACKAGE, |
684 enc_utf8 ? "utf-8" : (char *)p_enc); | 687 enc_utf8 ? "utf-8" : (char *)p_enc); |
688 #endif | |
689 | |
690 #ifdef WIN32 | |
691 /* When changing 'encoding' while starting up, then convert the command | |
692 * line arguments from the active codepage to 'encoding'. */ | |
693 if (starting != 0) | |
694 { | |
695 extern void fix_arg_enc(void); | |
696 | |
697 fix_arg_enc(); | |
698 } | |
685 #endif | 699 #endif |
686 | 700 |
687 #ifdef FEAT_AUTOCMD | 701 #ifdef FEAT_AUTOCMD |
688 /* Fire an autocommand to let people do custom font setup. This must be | 702 /* Fire an autocommand to let people do custom font setup. This must be |
689 * after Vim has been setup for the new encoding. */ | 703 * after Vim has been setup for the new encoding. */ |