Re: Fix wrong character count in argp

2012-03-26 Thread Vladimir 'φ-coder/phcoder' Serbinenko
> I can strip down one of our programs to keep just --help when time permits. Here is a test: "Обязательные или необязательные аргументы для длинных ключей также являются обязательными или необязательными для соответствующих коротких ключей." Expected result: "Обязательные или необязательные аргум

Re: Fix wrong character count in argp

2012-02-12 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 12.02.2012 22:59, Bruno Haible wrote: > Hi Vladimir, > > Thank you for the proposed patch. > >> As already reported several years ago > I cannot find it in my archives. Maybe that discussion already contained > some useful thoughts or arguments? Can you please point me to it? http://lists.gnu.or

Re: Fix wrong character count in argp

2012-02-12 Thread Bruno Haible
Hi Vladimir, Thank you for the proposed patch. > As already reported several years ago I cannot find it in my archives. Maybe that discussion already contained some useful thoughts or arguments? Can you please point me to it? > argp counts bytes even when > actually what matters is the display

Fix wrong character count in argp

2012-02-12 Thread Vladimir 'φ-coder/phcoder' Serbinenko
As already reported several years ago argp counts bytes even when actually what matters is the display length. This patch improves the situation by counting only leading and standalone UTF-8 bytes. It doesn't handle the double-width characters like Chinese sinograms -- Regards Vladimir 'φ-coder/p