Re: [Nautilus-list] Compile failure Nautilus 1.0.5
- From: Alfons Hoogervorst <alfons proteus demon nl>
- To: nautilus-list lists eazel com
- Subject: Re: [Nautilus-list] Compile failure Nautilus 1.0.5
- Date: Sat, 20 Oct 2001 18:38:43 +0200
Lo Paul,
On 20 Oct 2001 23:34:11 +1000 you wrote:
| When I try to configure and compile Nautilus on my
| system I get the following error:
| ======
| nautilus-desktop-file-loader.c: In function `validated_strdup':
| nautilus-desktop-file-loader.c:1043: `CODESET' undeclared (first use in
| this function)
| Any ideas?
Yeah. A hacker put something distro specific in the file, and even
mentioned it was *unportable*:
if (!initialized) {
/* whee, we are totally unportable (broken too) */
setlocale (LC_CTYPE, "");
locale = nl_langinfo (CODESET);
If you grep /usr/include for CODESET, you'll probably find something like
this:
% grep -C "CODESET" *.h
langinfo.h- _NL_CTYPE_WIDTH,
langinfo.h- _NL_CTYPE_MB_CUR_MAX,
langinfo.h: _NL_CTYPE_CODESET_NAME,
langinfo.h-#ifdef __USE_XOPEN
langinfo.h: CODESET = _NL_CTYPE_CODESET_NAME,
langinfo.h-#endif
langinfo.h- _NL_NUM_LC_CTYPE,
So define __USE_XOPEN just before the #include <langinfo.h>
Bye.
--
Ecuación algebraico sin solución posible,
a menos de poseer profundos conocimientos
en matemática - Revueltas (Ocho Por Radio)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]