Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
FuzzyFinder and error E806: using Float as a String
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Peter Krantz  
View profile  
 More options Sep 27 2010, 3:25 am
From: Peter Krantz <peter.kra...@gmail.com>
Date: Mon, 27 Sep 2010 09:25:26 +0200
Local: Mon, Sep 27 2010 3:25 am
Subject: FuzzyFinder and error E806: using Float as a String
Hi!

First of all I would like to thank Björn for making Macvim available.

I was trying to use FuzzyFinder [1] in Macvim 7.3 (on OSX 10.6.4) and
received multiple errors relating to floating point numbers in
FuzzyFinders source ("E806: using Float as a String"). The error can
be reproduced by trying :let s = 0.5 in Macvim which results in the
same error.

This happens if I launch Macvim by double-clicking the icon in Finder.
If I launch Macvim form the terminal with the mvim command the error
disappears. My locale settings in the terminal is:

$ locale
LANG="sv_SE.UTF-8"
LC_COLLATE="sv_SE.UTF-8"
LC_CTYPE="sv_SE.UTF-8"
LC_MESSAGES="sv_SE.UTF-8"
LC_MONETARY="sv_SE.UTF-8"
LC_NUMERIC="sv_SE.UTF-8"
LC_TIME="sv_SE.UTF-8"
LC_ALL=

In the vim :help language it says that if vim is compiled with the
+float feature "the LC_NUMERIC value will always be set to "C", so
that floating    point numbers use '.' as the decimal point". Flags for
my Macvim (which is the standard download) can be seen in comments to
[2].

How can I make Macvim use the same locale settings as mvim in terminal
when I launch it from Finder? Am i misinterpreting what the +float
feature should do? Isn't it supposed to always make sure that dots can
be used for floating point numbers?

Regards,

Peter Krantz
http://www.opengov.se

[1]: Version 2010-09-26: https://bitbucket.org/ns9tks/vim-fuzzyfinder/
[2]: http://bitbucket.org/ns9tks/vim-l9/issue/2/errors-in-l9-in-macvim-73


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
björn  
View profile  
 More options Sep 27 2010, 10:47 am
From: björn <bjorn.winck...@gmail.com>
Date: Mon, 27 Sep 2010 16:47:12 +0200
Local: Mon, Sep 27 2010 10:47 am
Subject: Re: FuzzyFinder and error E806: using Float as a String
On 27 September 2010 09:25, Peter Krantz <peter.kra...@gmail.com> wrote:

Hi Peter,

I thought this problem was related to the fact that the Ruby interface
to Vim used to return all expression evaluations as a string but in
7.3 it returns the "proper" value.  Thus "all" plugins that use Ruby
need to be updated for 7.3.  Reading [2] I don't know if this is the
case but it seems that the issue has been fixed anyway?

As for your question: I have not manage to figure out how Terminal.app
magically figures out which values to use for the locale environment
variables.  My only suggestion is that you set them explicitly in your
~/.profile if you want them to always have the same value.

To be clear: Terminal.app has some heuristic for figuring out which
locale settings to use -- these settings are not picked up even if you
start a login shell (as MacVim does when it spawns a Vim process).  So
in order for MacVim to have the same settings as Terminal.app I would
need to know how Terminal.app does this.  If somebody could enlighten
me on how this is done I'd be grateful.

Björn


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »