bybell skrev:
Martin,

It's certainly related to the version.  I don't belong to that debian-
bugs group so I can't post this, but in locales which swap . and , in numbers, the postscript files are corrupt. Recent versions in the 3.x series fix this.

Ah, thanks! That explains things.

Tony Bybell: (Bcc:ed)

I can't see any signs of gtkwave beeing localized, it's just gtk_init() doing the setlocale() and friend calls to be a civilized application, right?

(Anyone should btw be able to post to debian bugs, just post to the bug id as done in this post)

Hamish Moffatt:

The best would be getting a new upstream version in debian, but it's not possible since there's currently a feature freeze for the upcoming etch release, right? (I'm not too up to date with debian development)

Would it be possible to get the attached patch applied before the release of etch? It removes locale support all together by setting LC_ALL to C, thus working around this bug and causing minimal side effects.
--
/Martin
diff -ur gtkwave-1.3.81/src/main.c gtkwave-1.3.81-patched/src/main.c
--- gtkwave-1.3.81/src/main.c	2005-11-18 05:39:54.000000000 +0100
+++ gtkwave-1.3.81-patched/src/main.c	2007-01-29 22:19:31.249597954 +0100
@@ -197,6 +197,8 @@
 
 char *skip_start=NULL, *skip_end=NULL;
 
+setenv("LC_ALL", "C", 1);
+
 whoami=malloc_2(strlen(argv[0])+1);	/* cache name in case we fork later */
 strcpy(whoami, argv[0]);
 

Reply via email to