This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: UCS data encoding in localedata


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]