bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH, resend] Handle multibyte codepoint width properly


From: Vladimir 'φ-coder/phcoder' Serbinenko
Subject: Re: [PATCH, resend] Handle multibyte codepoint width properly
Date: Thu, 05 Apr 2012 17:58:10 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.3) Gecko/20120329 Icedove/10.0.3

On 05.04.2012 14:32, Bruno Haible wrote:
> Hi Vladimir,
>
>> I'm not sure if previous time I sent with or without \0 bugfix. Resending
>
>
> - The function __argp_get_display_len looks very similar to mbsnwidth(),
>   from module 'mbswidth'. Could you use that function? One of the gnulib
>   principles is to reuse code that is already in gnulib, where it makes sense.
Remaining is the issue due to escape sequences.
> - You have shown a test case as a Cyrillic string. But what is the C code
>   to make the behaviour explicit? Could you add this code to 
> tests/test-argp.c,
>   or create a new test file tests/test-argp-3.c?
Done but the test is valid only for UTF-8 locales. Should I force some
specific locale? It's impossible to make a test working in all locales
since in case of e.g. ASCII we don't have such characters at all.


-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko

Attachment: fmtstream.diff
Description: Text Data

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]