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: John Lowe
Subject: Re: Compiling coreutils-5.0 on a Mac Powerbook under OS X
Date: Tue, 9 Nov 2004 10:30:54 +0000
User-agent: Turnpike/6.04-M (<DjQoyXuLKbYuWulBPfoz9l+T6w>)

In message <87oei8446c.fsf@penguin.cs.ucla.edu>, Paul Eggert <eggert@CS.UCLA.EDU> writes
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.  */

Yes that does work.
--
John Lowe
jrnl@bytetype.co.uk




reply via email to

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