[vlc-devel] Re: [minor bug] --disable-nls breaking build of vlc-0.8.5 on GNU/Linux

Rémi Denis-Courmont rem at videolan.org
Thu Nov 2 16:10:43 CET 2006


Le jeudi 2 novembre 2006 01:33, Claudio Fontana a écrit :
> misc/charset.c: In function `GetFallbackEncoding':
> misc/charset.c:573: warning: implicit declaration of
> function `setlocale'
> misc/charset.c:573: error: `LC_ALL' undeclared (first
> use in this function)
> misc/charset.c:573: error: (Each undeclared identifier
> is reported only once
> misc/charset.c:573: error: for each function it
> appears in.)
> misc/charset.c:573: warning: assignment makes pointer
> from integer without a cast

> It seems src/misc/charset.c does not protect any of
> the intl-related stuff within #ifdef ENABLE_NLS.

--disable-nls is about not using libintl. It's not about not using 
setlocale which is part of both C99 and POSIX.

Removing the #ifdef HAVE_LOCALE_H and the corresponding #endif should 
fix the problem.

-- 
Rémi Denis-Courmont
soon graduating
http://www.simphalempin.com/home/infos/CV-en.pdf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20061102/1fe87ced/attachment.sig>


More information about the vlc-devel mailing list