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: [PATCH] Use Unicode code points for country_isbn


On 07/23/2015 06:27 PM, OndÅej BÃlka wrote:
>> I'd rather have some extension to allow a locale source file to declare 
>> that it is in UTF-8, and then use UTF-8 throughout except for control 
>> characters or combining characters used in isolation.
>>
> I second that. It would be technically easy to do, so its mostly matter
> of selecting proper interface. If we require some utf8 locale (if we
> decide for C.UTF8 then use it otherwise for example en_US.
> 
> Then it would be matter of selecting different locale on files marked
> say by having UTF8 in first line. Sample implementation would be:
> 
> fgets (first_line, 5, locale);
> if (!memcmp (first_line, "UTF8", 4))
>   setlocale(LC_ALL,"en_US.UTF8");
> else
> /* unget first line.  */
> 

I agree with Joseph's position here.

Further to that, my primary goal is to make contribution for these
files easier.

I have no interest in the abstract cases that are not being supported
by anyone at the present moment.

Cheers,
Carlos.


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