[hobbit] graph localization

Henrik Stoerner henrik at hswn.dk
Fri Apr 8 17:04:08 CEST 2005


On Fri, Apr 08, 2005 at 03:40:36PM +0200, Gianluca Rossi wrote:
> Is there a way to generate the correct localized name of the day in the 
> trends graph?
> 
> I am trying to generate italian names, and i added
> 
> LANG=it_IT at euro
> LC_CTYPE="it_IT at euro"
> LC_TIME="it_IT at euro"

hobbitgraph does an explicit "LC_TIME=C", because the fonts included
with rrdtool doesn't support all of the characters needed for
non-english weekday-names.

I suppose I ought to make that configurable, or just remove it and let
people set it themselves if they must. Apply this patch and you should
get the names you want.


Regards,
Henrik

-------------- next part --------------
--- hobbitd/hobbitgraph.c	2005/03/25 21:13:41	1.21
+++ hobbitd/hobbitgraph.c	2005/04/08 15:03:06
@@ -11,7 +11,7 @@
 /*                                                                            */
 /*----------------------------------------------------------------------------*/
 
-static char rcsid[] = "$Id: hobbitgraph.c,v 1.21 2005/03/25 21:13:41 henrik Exp $";
+static char rcsid[] = "$Id: hobbitgraph.c,v 1.22 2005/04/08 15:02:47 henrik Exp $";
 
 #include <limits.h>
 #include <stdio.h>
@@ -534,9 +534,6 @@
 	}
 	load_gdefs(gdeffn);
 
-	/* Dont use local names for week-days etc - the RRD fonts dont support it. */
-	putenv("LC_TIME=C");
-
 	/* Determine the directory with the host RRD files, and go there. */
 	if (rrddir == NULL) {
 		char dnam[PATH_MAX];


More information about the Xymon mailing list