[code] setlocale problem with luajit (patch)

From: Gilles Grégoire <gilles.gregoire.att.gmail.com>
Date: Sun, 29 Apr 2012 18:13:04 +0200

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.

-- Gilles

-- 
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 Sun 29 Apr 2012 - 12:13:04 EDT

This archive was generated by hypermail 2.2.0 : Mon 30 Apr 2012 - 06:44:39 EDT