[PATCH] Make lconv structure conform to standards
Joerg Sonnenberger
joerg at britannica.bec.de
Tue Sep 18 04:30:45 PDT 2007
On Mon, Sep 17, 2007 at 04:36:37PM +0300, Hasso Tepper wrote:
> Unconstify members of the lconv structure to make it conform to the C89
> and C99 standards. At the moment the code snippets like this will compile
> without warning on every platform I looked at except DragonFly:
>
> char *foo = lconv->thousands_sep;
Yes and this code is wrong because it can though read-only memory. I
never saw a technical reason why this fields are not read-only in ISO C
and that is bogus.
Joerg
More information about the Submit
mailing list