bug-gettext
[Top][All Lists]
Advanced

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

Re: [bug-gettext] MO specification: string order: signed vs unsigned


From: Vladimir 'φ-coder/phcoder' Serbinenko
Subject: Re: [bug-gettext] MO specification: string order: signed vs unsigned
Date: Fri, 04 May 2012 14:19:52 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.3) Gecko/20120329 Icedove/10.0.3

On 04.05.2012 09:12, Vladimir 'φ-coder/phcoder' Serbinenko wrote:
> The specification for mo doesn't handle following point: are the strings
> compared when interpreting them as signed char * or unsigned char * ? In
> other words: which one comes first:
> "ax" or "âx"
To answer my own question: gettext just uses strcmp which in few common
libc I've checked (glibc, uclibc, FreeBSD, illumos libc) all take care
of using unsigned comparisons. However this isn't part of C99 specification.
Should I propose a patch to update the documentation and add a unit-test
to check that strcmp behaves as expected to avoid generating incorrect MOs?
> ?
>


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


Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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