UCS data encoding in localedata
Roumen Petrov
bugtrack@roumenpetrov.info
Sat Apr 14 13:48:00 GMT 2012
Hi,
Petr Baudis wrote:
> Hi!
[SNIP]
> On Sat, Apr 07, 2012 at 12:29:37AM +0300, Roumen Petrov wrote:
>> Switch of locale data to UTF-* could be fine, but this will not
>> resolve issue with function nl_langinfo.
>
> Could you elaborate, please?
Function nl_langinfo return character pointer to internal structure.
With switch to input of locale data in UTF-8 internal representation for
string and wstring could be optimized do not store 'wide' representation .
Another issue is with non-string types. For instance TIME block define
number of days in week as "byte' , week first day as 'word', calendar
direction .
Currently nl_langinfo return a pointer to internals and how application
will know how to convert ?
Roumen
More information about the Libc-alpha
mailing list