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

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

Re: Error compiling gettext 0.10.38 on SCO Openserver 5.0.5


From: Paul Eggert
Subject: Re: Error compiling gettext 0.10.38 on SCO Openserver 5.0.5
Date: Fri, 20 Jul 2001 10:16:15 -0700 (PDT)

> From: address@hidden
> Date: Fri, 20 Jul 2001 17:59:12 +0200
> 
> just wanted to let you know that the stock C library wchar that comes 
> with SCO Openserver does not provide the mbsinit function. It has a 
> similar one named sisinit instead (it looks pretty much the same, 
> except it deos not specify returning non zero for a null pointer input).

> I guess the age of the libraries that are provided with Openserver 
> 5.0.5 is to blame

Isn't 5.0.5 pretty recent?

Does the code work if you add "-Dmbsinit=sisinit" to CFLAGS?
If so, I suppose we could add some autoconf magic to do that.

Another possibility is to disable mbrtowc on that host.
Does the following patch work for you (without -Dmbsinit=sisinit)?

--- lib/mbswidth.c      Tue Apr 17 12:22:42 2001
+++ /tmp/mbswidth.c     Fri Jul 20 10:02:35 2001
@@ -102,7 +102,7 @@ mbsnwidth (string, nbytes, flags)
   int width;
 
   width = 0;
-#if HAVE_MBRTOWC
+#if HAVE_MBRTOWC && HAVE_MBSINIT
   if (MB_CUR_MAX > 1)
     {
       while (p < plimit)



reply via email to

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