uClibc snapshot + gettext = some minor issues

Rich Felker dalias at aerifal.cx
Wed Jun 14 23:00:58 UTC 2006


On Fri, Jun 02, 2006 at 05:28:46PM -0400, Robb, Sam wrote:
>   - MB_CUR_MAX is apparently only defined if __UCLIBC_HAS_WCHAR__ is set.
> 
>   Reading susv3 (http://www.unix.org/version3/sample/basedefs/stdlib.h.html)
> it seems like this should always be available.  It looks as if there was some
> attempt to implement this that's been obsoleted.  Would it be appropriate to
> simply set MB_CUR_MAX to 1 (the default) is __UCLIBC_HAS_WCHAR__ is not set?

Well SUSv3 is irrelevant here since uClibc without wchar support is
not conforming even to ISO C, much less SUSv3. IMO it should provide
dummy mb/wc functions (or macros) that just do one-to-one 8bit mapping
between 8bit char and 8bit wchar_t if wchar support is disabled,
rather than just omitting them entirely.

Rich




More information about the uClibc mailing list