Re: Unicode

David Hakim <dhakim-Gkm/TONP9n1Wk0Htik3J/[email protected]> Sat, 20 Sep 2003 20:06:01 -0400
Newsgroups gmane.comp.lang.moto.user
Message-ID <[email protected]>
On Saturday, September 20, 2003, at 04:28  PM, Jonas Koch Bentzen wrote:

> Hello,
>
> Does Moto support Unicode? E.g., let's say you have a Unicode string 
> consisting of two Japanese characters that each take up two bytes. An 
> ordinary strlen() function (is it called strlen() in Moto?) will claim 
> the string is four characters long (because the string takes up four 
> bytes), whereas a Unicode-aware strlen() function will know the string 
> is only two characters long. How Unicode-aware is Moto at its present 
> stage?
>

So far there shouldn't be anything in the code that will prohibit 
unicode characters and strings in the future. The plan is definitely to 
move to unicode characters and strings in the future which is the 
primary reason for the separate byte datatype in moto. However right 
now chars are still stored as C characters behind the scenes and 
Strings as C strings.

-Dave

> Is GNU gettext supported?
>
> - Jonas Bentzen
>
>