Re: [code] setlocale problem with luajit (patch)

From: Mitchell <m.att.foicica.com>
Date: Mon, 30 Apr 2012 08:53:56 -0400 (Eastern Daylight Time)

Hi Gilles,

On Sun, 29 Apr 2012, Gilles Grégoire wrote:

> When using textadeptjit on a french computer, all the numbers in lua files
> are marked with the following kind of error message:
> malformed number near '120.2'
>
> This bug affects at least mac osx lion and linux (ubuntu 10.4). This bug
> does not affect "normal" textadept.
>
> This is apparently a locale issue. I tried the change suggested in this
> thread:
> http://lua-users.org/lists/lua-l/2011-03/msg00318.html
>
> i.e: add a setlocale(LC_NUMERIC, "C") just before luaL_newstate().
>
> The bug seems to be solved.
>
> Find attached the corresponding patch against textadept-5.2.

Thank you! This will be in the next release.

Mitchell

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Mon 30 Apr 2012 - 08:53:56 EDT

This archive was generated by hypermail 2.2.0 : Tue 01 May 2012 - 06:37:29 EDT