On Dec 7, 6:46 am, Dominique Pellé <[email protected]> wrote:
> Nico wrote:
> > After receiving several bug reports from users in one of my scripts, I
> > came across this strange behavior. If GVim is being run in a different
> > language, most functions cannot be called with floating point numbers
> > as arguments. Here are the steps to reproduce:
>
> > file: test.vim ----------------------------------
>
> > function TestFloat(secret_number)
> >    echo a:secret_number
> > endfunction
>
> > call TestFloat(3.14)
>
> > -----------------------------------------------------
>
> >> export LANG=de_DE.utf-8
> >> gvim
>
> > :source test.vim
>
> > Produces:
>
> > E806: using Float as String
> > E116: Invalid arguments for function TestFloat
>
> Attached patch fixes it for me.
> Can you also check whether it works for you?
>
> I wonder whether the same bug exists on Windows and other
> OS or GUIs which I cannot test.

On Windows neither gvim nor vim have that bug

Regards,
Cesar

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

Raspunde prin e-mail lui