On 03/10/11 06:03, Tony Mechelynck wrote:
[...]
- $LC_NUMERIC is "C" on entry to the vimrc
- it is still "C" while sourcing the last global after-plugin
- it has become empty (and is listed as "en_US.UTF-8" in the output of
:lang with no arguments) at the GUIEnter event in gvim with GTK2/Gnome2 GUI
- it remains set to "C" if I run the same Vim executable in console mode.

I suspect the line marked below with <----- at line 1467 of main.c but I
don't know GTK well enough to be sure. Do you think it would be worth
swapping the two ifdef blocks to see if it changes anything? (Not this
second, I'm going to bed.)

After swapping them, $LC_NUMERIC is still reset at GUIEnter


/*
* Setup to use the current locale (for ctype() and many other things).
*/
static void
init_locale()
{
setlocale(LC_ALL, "");

# ifdef FEAT_GUI_GTK
/* Tell Gtk not to change our locale settings. */
gtk_disable_setlocale(); <----- this line
# endif
# if defined(FEAT_FLOAT) && defined(LC_NUMERIC)
/* Make sure strtod() uses a decimal point, not a comma. */
setlocale(LC_NUMERIC, "C");
# endif


Best regards,
Tony.
--
The first myth of management is that it exists.  The second myth of
management is that success equals skill.
                -- Robert Heller

--
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

Raspunde prin e-mail lui