bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: build failure when system does not provide MB_CUR_MAX


From: Bruno Haible
Subject: Re: build failure when system does not provide MB_CUR_MAX
Date: Wed, 27 May 2009 11:54:34 +0200
User-agent: KMail/1.9.9

Mike Frysinger wrote:
> it's disabled explicitly because we dont want multibyte sucking up space on a 
> system that doesnt need it.

You need to distinguish two things:
 1) An implementation of ANSI C amendment 1 (MB_CUR_MAX, mbtowc, mblen, 
mbstowcs,
    wctomb, wcstombs, btowc, wctob, isw*, tow*) that does handle both unibyte 
and
    various multibyte encodings. This does take space.
 2) An implementation of ANSI C amendment 1 that supports only ASCII. This
    hardly takes any space, because it can be done through very small functions
    or even inline functions.

The "remove all multibyte stuff" switch in uClibc should be leaving dummy
functions of type 2) in place. Then programs will compile fine.

You even find LGPLed code for this on the web: Take my old libutf8 [1] and 
remove
all support for UTF-8, this leaves only support for unibyte encodings in place.

Bruno

[1] http://www.haible.de/bruno/packages-libutf8.html




reply via email to

[Prev in Thread] Current Thread [Next in Thread]