Mercurial > hg > octave-lojdl > gnulib-hg
diff lib/vasnprintf.c @ 8803:6c1d98929550
Work around lack of support of grouping flag.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 06 May 2007 15:29:04 +0000 |
parents | 40c507f55b0f |
children | 6ce313658b4d |
line wrap: on
line diff
--- a/lib/vasnprintf.c +++ b/lib/vasnprintf.c @@ -1012,8 +1012,14 @@ sprintf. */ p = buf; *p++ = '%'; +#if NEED_PRINTF_FLAG_GROUPING + /* The underlying implementation doesn't support the ' flag. + Produce no grouping characters in this case; this is + acceptable because the grouping is locale dependent. */ +#else if (dp->flags & FLAG_GROUP) *p++ = '\''; +#endif if (dp->flags & FLAG_LEFT) *p++ = '-'; if (dp->flags & FLAG_SHOWSIGN)