This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: [PATCH] Simplify usage of __jp2uc
On May 14 15:16, Jeff Johnston wrote:
> Corinna Vinschen wrote:
>> Hi,
>>
>> This patch is a prerequisite for the new wcwidth/wcswidth implementation.
>>
>> It's a bit burdensome that the conversion from JIS/SJIS/EUCJP to Unicode
>> is a 6-liner in every function which requires the conversion. The idea
>> of this patch is to combine the functionality into a single function
>> _jp2uc, which in turn calls __jp2uc with the correct type value. This
>> way, you only have a single line in the calling functions:
>>
>> c = _jp2uc(c);
>>
>> Ok to check in?
>>
>>
> Ok.
Thanks, applied.
Corinna
--
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat