Summary: | rrdtool-1.2.9 released | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Frederic Mangeant <frederic.mangeant> |
Component: | New packages | Assignee: | Gentoo Netmon project <netmon> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Frederic Mangeant
2005-05-30 00:18:32 UTC
in cvs Well, I should have tested it more before submiting the ebuild :-( It seems that the new locales management breaks something : http://forums.cacti.net/viewtopic.php?t=7824 (In reply to comment #2) > Well, I should have tested it more before submiting the ebuild :-( > It seems that the new locales management breaks something : > http://forums.cacti.net/viewtopic.php?t=7824 This is confirmed on my gentoo system: http://david.port80.se/fault/ I've posted this on the rrd-users mailing-list but I haven't been able to resolve this. /David Hi Tobi sent me a patch yesterday, and it seems to be included in the latest RRDtool snapshot (http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/pub/beta/rrdtool-svn-snap.tar.gz) : r638 | oetiker | 2005-06-13 15:20:45 +0200 | 2 lines wide chars should better be unsigned Here's the diff : --- rrd_gfx.c.old 2005-06-13 15:03:04.000000000 +0200 +++ rrd_gfx.c 2005-06-14 09:51:02.000000000 +0200 @@ -384,7 +384,11 @@ wchar_t *cstr; size_t clen = strlen(text)+1; cstr = malloc(sizeof(wchar_t) * clen); /* yes we are allocating probably too much here, I know */ - string->count=mbstowcs(cstr,text,clen); + /* conversion did not work, so lets fall back to just use what we got */ + string->count=clen-1; + for(n=0;text[n] != '\0';n++){ + cstr[n]=(unsigned char)text[n]; + } if ( string->count == -1){ string->count=mbstowcs(cstr,"Enc-Err",6); } Let's wait for 1.2.10 ;-) |