Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Mar 2003 14:08:17 -0800
From:      David Schultz <das@FreeBSD.ORG>
To:        Franz Klammer <klammer@webonaut.com>
Cc:        current@FreeBSD.ORG, ru@FreeBSD.ORG
Subject:   Re: .2 isn't a valid double and other problems
Message-ID:  <20030317220817.GA6894@HAL9000.homeunix.com>
In-Reply-To: <1047922773.9305.30.camel@ds9.webonaut.com>
References:  <1047922773.9305.30.camel@ds9.webonaut.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Thus spake Franz Klammer <klammer@webonaut.com>:
> cvsup and build (kernel + userland, empty /usr/obj):
> FreeBSD ds9.webonaut.com 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Sun Mar 16
> 17:53:22 CET 2003  root@ds9.webonaut.com:/usr/obj/usr/src/sys/DS9  i386
> 
> 
> since my update from yesterday (above), fontconfig can't read his
> configuration file. it claims the .2 isn't a valid double. 
> (line 228 of fonts.conf)
> 
> metacity seems can't also not correct read his config if numbers 
> like 0.7 used.
> 
> there are also problems with script-fu from gimp-devel wich cause 
> a segfault:
> 
> ... many similar line like the blow deletet ...
> gimp-1.3: Corrupt segment 1 in gradient file
> '/usr/X11R6/share/gimp/gradients/Yellow_Orange.ggr'.
> 
> (gimp-1.3:58219): Gimp-Core-WARNING **: (): no matching segment for
> position 0,066666666666667
> gimp-1.3: fatal error: Segmentation fault

You're using a locale in which the decimal point character is a
comma.  The breakage is my fault.  I'm waiting to hear back from
the vendor about a (trivial) patch, but I may just check the fix
in sooner anyway.  For the moment, please use the following:

Index: gdtoaimp.h
===================================================================
RCS file: /cvs/src/contrib/gdtoa/gdtoaimp.h,v
retrieving revision 1.2
diff -u -r1.2 contrib/gdtoa/gdtoaimp.h
--- gdtoaimp.h	12 Mar 2003 20:20:22 -0000	1.2
+++ gdtoaimp.h	15 Mar 2003 23:14:12 -0000
@@ -203,6 +203,7 @@
 #endif
 
 #define INFNAN_CHECK
+#define USE_LOCALE
 
 #undef IEEE_Arith
 #undef Avoid_Underflow

Index: contrib/gdtoa/strtodg.c
===================================================================
RCS file: /cvs/src/contrib/gdtoa/strtodg.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 strtodg.c
--- contrib/gdtoa/strtodg.c	12 Mar 2003 20:18:18 -0000	1.1.1.1
+++ contrib/gdtoa/strtodg.c	16 Mar 2003 00:27:41 -0000
@@ -337,6 +337,9 @@
 	int j, k, nbits, nd, nd0, nf, nz, nz0, rd, rvbits, rve, rve1, sign;
 	int sudden_underflow;
 	CONST char *s, *s0, *s1;
+#ifdef USE_LOCALE
+	CONST char *s2;
+#endif
 	double adj, adj0, rv, tol;
 	Long L;
 	ULong y, z;

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030317220817.GA6894>