Date: Wed, 2 Apr 2003 13:30:05 -0800 (PST) From: Kimura Fuyuki <fuyuki@hadaly.org> To: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/50538: new port: science/gchemutils - set of Gtk2 widgets for chemistry Message-ID: <200304022130.h32LU5rR086617@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/50538; it has been noted by GNATS. From: Kimura Fuyuki <fuyuki@hadaly.org> To: pav@oook.cz Cc: FreeBSD-gnats-submit@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"))
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304022130.h32LU5rR086617>