Re: [ANN] Lua 5.2.0 (beta-rc2) locale
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: [ANN] Lua 5.2.0 (beta-rc2) locale
- From: Edgar Toernig <froese@...>
- Date: 2011年6月22日 23:06:23 +0200
I wrote:
> Roberto Ierusalimschy wrote:
> > > b) Create the ctype table on the fly when building Lua.
> > > May become difficult when cross-compiling (HOST_CC needed
> > > which uses the same encoding as the TARGET_CC).
> >
> > Another option is to create it on the fly when opening the Lua state.
>
> Yes. But please, if you go that route, pre-initialize the table
> for ASCII and wrap the initialization with something like
> "if ('A' != 65)" or "#ifdef USE_NONASCII_CHARSET" else most of the
> Lua users would suffer only because of the EBCDIC guys.
Hmm... to make that multi-threading save the ctype table has to be in
the Lua-state :-/
Ciao, ET.