help-gnu-utils
[Top][All Lists]
Advanced

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

Re: Compiling coreutils-5.0 on a Mac Powerbook under OS X


From: Paul Eggert
Subject: Re: Compiling coreutils-5.0 on a Mac Powerbook under OS X
Date: Mon, 08 Nov 2004 09:54:35 -0800
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

John Lowe <jrnl@bytetype.co.uk> writes:

> strftime.c:63: header file 'wchar.h' not found

Does the following patch to lib/strftime.c fix things for you?

--- strftime.c  2003-09-29 23:44:01 -0700
+++ /tmp/strftime.c     2004-11-08 09:53:22 -0800
@@ -56,10 +56,10 @@ extern char *tzname[];
    conversion specifications.  The GNU C Library uses UTF8 multibyte
    encoding, which is safe for formats, but strftime.c can be used
    with other C libraries that use unsafe encodings.  */
-#define DO_MULTIBYTE (HAVE_MBLEN && ! MULTIBYTE_IS_FORMAT_SAFE)
+#define DO_MULTIBYTE (HAVE_MBLEN && HAVE_WCHAR_H && ! MULTIBYTE_IS_FORMAT_SAFE)
 
 #if DO_MULTIBYTE
-# if HAVE_MBRLEN
+# if HAVE_MBRLEN && HAVE_WCHAR_H
 #  include <wchar.h>
 # else
    /* Simulate mbrlen with mblen as best we can.  */




reply via email to

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