[PATCH] Use Unicode code points for country_isbn
Carlos O'Donell
carlos@redhat.com
Fri Jul 24 00:20:00 GMT 2015
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.
More information about the Libc-alpha
mailing list