lua-users home
lua-l archive

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


> On 28 April 2016 at 04:14, Roberto Ierusalimschy <roberto@inf.puc-rio.br> wrote:
> >> Yes for the specific case of ",", before I read the code I was
> >> thinking other locales might use something else that didn't conflict.
> >
> > Are there C locales that use something else, besides a dot or a comma?
> 
> Google around I couldn't find any, however I then looked at my local
> locale database which revealed:
> 
> /usr/share/i18n/locales/fa_IR:mon_decimal_point "<U066B>"
> /usr/share/i18n/locales/ps_AF: decimal_point "<U066B>"
> 
> This is the arabic decimal separator: ٫

In the few places where Lua messes with the decimal point, it assumes
it is a single byte. So, I am afraid Lua will not work properly with
this locale.

-- Roberto