lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]



On Apr 7, 2015 3:52 PM, "Roberto Ierusalimschy" <roberto@inf.puc-rio.br> wrote:
>
> > [...] Also, another change I did is modifying llex.c to hardcode
> > ls->decpoint = '.'.
>
> There is a macro to allow that change without modifing the source code.
> Couldn't you use it?
>
>   #define l_getlocaledecpoint() '.'
>
> (You can add that #define in luaconf.h or even through -D.)

Unfortunately I only found this out after I managed to get Lua built, and I did not re-visit it, since I did not think I would share it.

The whole thing could probably be done cleanly as a separate 'platform' in the root Makefile.