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"

Thanks.  I noticed that message only after replying to this one.

-- 
How To Keep A Healthy Level Of Insanity:
1. At lunch time, sit in your parked car with sunglasses on and point
   a hair dryer at passing cars. See if they slow down.

 /// 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.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui