From c87b84844a1c59cd571fa9c6336a303567cda08e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?=
 <grubba@grubba.org>
Date: Mon, 28 Aug 2000 19:55:07 +0200
Subject: [PATCH] Disabled the memset kludge, since configure now detects it
 properly.

Rev: src/builtin_functions.c:1.305
---
 src/builtin_functions.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/builtin_functions.c b/src/builtin_functions.c
index fdd512a788..592dfa0f81 100644
--- a/src/builtin_functions.c
+++ b/src/builtin_functions.c
@@ -5,7 +5,7 @@
 \*/
 /**/
 #include "global.h"
-RCSID("$Id: builtin_functions.c,v 1.304 2000/08/28 15:03:33 grubba Exp $");
+RCSID("$Id: builtin_functions.c,v 1.305 2000/08/28 17:55:07 grubba Exp $");
 #include "interpret.h"
 #include "svalue.h"
 #include "pike_macros.h"
@@ -1054,13 +1054,17 @@ PMOD_EXPORT void f_string_to_unicode(INT32 args)
     out = begin_shared_string(len);
     if (len) {
       MEMSET(out->str, 0, len);	/* Clear the upper (and lower) byte */
+#if 0
+      /* Configure now succeeds in detecting the bug. */
       /* KLUDGE WARNING
-       * On Solaris 8 x86 memset(3C) sometimes doesn't clear the last bytes.
+       * In gcc 2.96 Solaris 8 x86 memset(3C) sometimes doesn't clear the
+       * last 2 bytes.
        * Unfortunately, I haven't been able to trigg the bug in configure.
        *	/grubba 2000-08-28
        */
       out->str[len-1] = 0;
       out->str[len-2] = 0;
+#endif /* 0 */
 #ifdef PIKE_DEBUG
       if (d_flag) {
 	for(i = len; i--;) {
-- 
GitLab