Bug#564610: clang: MB_LEN_MAX definition is wrong

Tyler J Stachecki tstache1 at binghamton.edu
Wed Apr 11 06:08:14 UTC 2012


Hi,

gcc also defines MB_MAX_LEN to be 1! clang simply mimics its behavior.
Yes, this behavior is incorrect, but see eglibc's limits.h... it fixes
this issue already!

===

gcc's (4.6.3) limits.h:

/* Maximum length of a multibyte character.  */
#ifndef MB_LEN_MAX
#define MB_LEN_MAX 1
#endif

===

eglibc's limits.h:
/usr/include/limits.h:

/* Maximum length of any multibyte character in any locale.
   We define this value here since the gcc header does not define
   the correct value.  */
#define MB_LEN_MAX  16

===

As the package maintainer above has stated, can you elaborate on,
specifically, what problem this is causing you?

Tyler





More information about the Pkg-llvm-team mailing list