Re: unistring bug

2012-04-01 Thread Andy Wingo
On Sun 01 Apr 2012 13:01, Bruno Haible writes: > This is normal documented behaviour. The function's description at [1] > >uint8_t * u32_to_u8 (const uint32_t *s, size_t n, uint8_t *resultbuf, > size_t *lengthp) > > is preceded by the general conventions explanation [2]: > >Functions ret

Re: unistring bug

2012-04-01 Thread Bruno Haible
Hi Andy, Andy Wingo wrote in : > The following program causes a segfault in the unistring that is current > in Debian sid: > > #include > #include > > int main (int argc, char *argv[]) > { > int floral_l

log10: more tests and workarounds

2012-04-01 Thread Bruno Haible
Continuing the math function support, I'm adding more tests and fixes to the 'log10', 'log10f', 'log10l' modules. Bugs worked around: - On OSF/1 5.1, log10(-0.0) is NaN, should be -Infinity. Likewise for log10f and log10l. - Wrong result for negative arguments on NetBSD 5.1 and Solaris.

unistring bug

2012-04-01 Thread Andy Wingo
Hi, The following program causes a segfault in the unistring that is current in Debian sid: #include #include int main (int argc, char *argv[]) { int floral_leaf = 0x2767; printf ("floral leaf: %s\n", u32_to_u8 (&floral_leaf, 1, 0, 0)); return 0; }