Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 94465
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Netmon Herd <netmon@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Frederic Mangeant <frederic.mangeant@gmail.com>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 94465 depends on: Show dependency tree
Bug 94465 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-05-30 00:18 0000
Hi

RRDtool 1.2.9 has been released, with a few bugfixes ("make tcl bindings compile
again") and some new features ("consider the users locale settings when
rendering text").

The full announcement is here : http://lists.ee.ethz.ch/rrd-announce/msg00081.html

It's building & running fine by copying the 1.2.8 ebuild.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.

------- Comment #1 From Benjamin Smee (strerror) (RETIRED) 2005-05-30 06:56:45 0000 -------
in cvs

------- Comment #2 From Frederic Mangeant 2005-05-30 07:09:29 0000 -------
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

------- Comment #3 From David J Andersson 2005-06-13 11:16:09 0000 -------
(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 

------- Comment #4 From Frederic Mangeant 2005-06-14 00:51:46 0000 -------
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 ;-)

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug