Ron Aaron wrote:
> Here's a question for Bram, probably:
>
> In 'main.c', around line 382, there is an 'init_locale()' which is
> intended to happen after 'gui_init_check()'.
>
> However, this only happens for the GTK UI. My question is, would it
> cause a problem to move this outside of that conditional and enable it
> for all versions of vim (not just GUI version).
>
> I ask, because I modify $VIMRUNTIME in my startup scripts, early,
> before the UI starts up. If the 'init_locale()' was re-done after my
> vimrc had been processed, then I would not need to have VIMRUNTIME set
> (on Windows boxen) in order to have the gettext stuff work correctly.
Perhaps the best solution is to put the code that uses $VIMRUNTIME to
another function and only call that part again after sourcing the vimrc
file.
I don't know how much overhead this has on different systems. Only
calling bindtextdomain() again if $VIMRUNTIME has changed requires
keeping the value used the first time. Or detecting that it's changed.
--
Mynd you, m00se bites Kan be pretty nasti ...
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
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
To unsubscribe, reply using "remove me" as the subject.