Bram Moolenaar <[email protected]>:
>
> Dominique Pelle wrote:
>
>> > Hi,
>> >
>> > I no longer get errors after setting this var:
>> >
>> > $ export LC_NUMERIC=C
>> >
>> > So I'm guessing GVim is not successfully setting it in some
>> > circumstances. I never get this error running the terminal vim, no
>> > matter what my language preference is set to.
>>
>> Ah, I was trying with Vim in a terminal.  But trying with gvim,
>> I can now reproduce the problem (at least with GTK2 or Motif GUIs).
>> And I confirm that doing "export LC_NUMERIC=C" before
>> running gvim works around the issue.
>
> I suspect that after Vim changes the locale, the GUI changes it to
> something else.  GTK is known to assume it can do anything to the global
> setup of the program.  Perhaps with some gdb debugging one can find out
> what happens to the locale during startup.

Yes, that's correct.

I sent a patch earlier which fixes this issue but I changed the
email subject when replying which broke the thread (sorry about
that).  See email sent earlier in vim_dev with this subject:

"[patch] fixed bug: floating point numbers cannot be used as arguments
in GVIM + lang"

Regards
-- Dominique

-- 
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui