ports/50538: new port: science/gchemutils - set of Gtk2 widgets for chemistry
Kimura Fuyuki
fuyuki at hadaly.org
Wed Apr 2 21:30:06 UTC 2003
The following reply was made to PR ports/50538; it has been noted by GNATS.
From: Kimura Fuyuki <fuyuki at hadaly.org>
To: pav at oook.cz
Cc: FreeBSD-gnats-submit at freebsd.org
Subject: Re: ports/50538: new port: science/gchemutils - set of Gtk2 widgets for chemistry
Date: Thu, 03 Apr 2003 06:25:03 +0900
This library will fail if the environment variable LANG is not
defined. Here's a patch. (Sent to the author too.)
Index: chemistry/element.cc
===================================================================
RCS file: /cvsroot/gchemutils/gchemutils/chemistry/element.cc,v
retrieving revision 1.3
diff -u -r1.3 element.cc
--- chemistry/element.cc 1 Mar 2003 17:02:49 -0000 1.3
+++ chemistry/element.cc 2 Apr 2003 04:14:46 -0000
@@ -97,7 +97,7 @@
if (!strcmp((const char*)child->name, "name"))
{
tmp = (char*) xmlNodeGetLang(child);
- if ((!tmp) && (!lang) && (!strncmp(lang, tmp, 2))) Elt->name = (char*) xmlNodeGetContent(child);
+ if (tmp && lang && (!strncmp(lang, tmp, 2))) Elt->name = (char*) xmlNodeGetContent(child);
else DefaultName = (char*) xmlNodeGetContent(child);
}
else if (!strcmp((const char*)child->name, "color"))
More information about the freebsd-ports-bugs
mailing list