work around BeOS snprintf() bug

2007-11-09 Thread Bruno Haible
When snprintf (buf, 1, formatstring, ...) is called on BeOS, it acts like an sprintf() call: It overwrites memory, ignoring the size = 1 argument. Here is a patch that documents this bug and works around it in vasnprintf.c. This bug was uncovered through the gnulib tests included in the gettext 0

vasnprintf: fix 2007-11-03 fix

2007-11-09 Thread Bruno Haible
The vasnprintf fix from 2007-11-03 has the effect that when a reallocation is needed, the snprintf() result will fit but the test _whether_ the snprintf() result did fit fails, so that another round of reallocation is performed. Inefficient... 2007-11-09 Bruno Haible <[EMAIL PROTECTED]>

avoid test failure on BeOS

2007-11-09 Thread Bruno Haible
The test-c-strcase test fails on BeOS. This is because the locale-tr.m4 has considered the tr_TR locale "good enough" on BeOS, but - as the test failure shows - it is not good enough. This fixes it. 2007-11-09 Bruno Haible <[EMAIL PROTECTED]> * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]