On 03/10/11 10:58, Thilo Six wrote:
Tony Mechelynck wrote the following on 03.10.2011 06:03

-- <snip>  --

     $LANGUAGE=

-- <snip>  --

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

-- <snip>  --

Best regards,
Tony.

I suspect without explictly testing it those two are related. If you don´t want
'$LANGUAGE' one has to use 'unset LANGUAGE' (there may differences about the
specific syntax to use depending on the shell you use). But setting it to an
empty value isn´t the same.

Regards,

I use bash; but the problem is not how to change my shell startup scripts, it's how to change Vim to make sure $LC_NUMERIC remains set at C after GUI startup for the full duration of the gvim process, regardless of what might have been in the outside environment outside of Vim.

AFAICT, $LANGUAGE and $LC_ALL being set at the empty string has the same effect as them not being defined; in particular, after requesting the environment values of the locale settings, Vim sees them as they are set (most of them "en_US.UTF-8" from $LANG; $LC_TIME and $LC_PAPER "en_GB" for DD/MM/YY date and A4 paper), not everything empty. In C, setlocale(LC_ALL, "") explicitly means "set the locale settings from the environment, don't keep them all at 'C' which is mandated at program startup by the C standard", cf. the info page for setlocale.

And BTW the problem happens only in the GUI; as I already mentioned, the same Vim executable keeps $LC_NUMERIC == 'C' when run in console mode.


Best regards,
Tony.
--
hundred-and-one symptoms of being an internet addict:
193. You ask your girlfriend to drive home so you can sit back with
     your PDA and download the information to your laptop

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