<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
<BR>Hi Tobi,<BR>
thank you very much for the info - although it does not help me changing the language settings for my rrd graphs :-(<BR>
I downloaded the rrdtool for windows binaries directly from here -> <A href="https://sites.google.com/site/christiankrausse/projekte/perl/rrds-perl-windows-v">https://sites.google.com/site/christiankrausse/projekte/perl/rrds-perl-windows-v</A> because I am not able to compile the sources by myself...<BR>
<BR>
Could it be an option for a future release of rrdtool to add a 'language' parameter like MRTG have? ;-)<BR>
<BR>
Regards Piet<BR>
<BR>
<DIV>
<DIV id=SkyDrivePlaceholder></DIV>> Date: Thu, 23 Aug 2012 08:02:15 +0200<BR>> From: tobi@oetiker.ch<BR>> To: pweischer@msn.com<BR>> CC: rrd-users@lists.oetiker.ch<BR>> Subject: Re: [rrd-users] FW: Special language dependent characters in rrdtool runnin on Windows<BR>> <BR>> Peter,<BR>> <BR>> Today Peter Weischer wrote:<BR>> <BR>> ><BR>> > No one any idea regarding how to change the language for the axis<BR>> > labels of rrd graphs in a Windows environment?<BR>> <BR>> this does probably depend on the how rrdtool for windows was<BR>> compiled ... since windows does not generally contain support for the<BR>> strftime function (which is used to do all the time formatting),<BR>> rrdtool contains a small public domain version of that function<BR>> wich can be compiled in when the OS does not supply an<BR>> implementation ... the simple version included with rrdtool only<BR>> support english weekday and month names (they are compiled in hard<BR>> coded) ...<BR>> <BR>> if your rrdtool is compiled with some posixish layer on windows,<BR>> the LANG setitngs should work, but otherwhise there is no helping<BR>> it short of modifying the source and recompiling ... (or switching<BR>> to some unix system with proper strftime implementation).<BR>> <BR>> cheers<BR>> tobi<BR>> ><BR>> ><BR>> ><BR>> > From: pweischer@msn.com<BR>> > To: rrd-users@lists.oetiker.ch<BR>> > Subject: RE: [rrd-users] Special language dependent characters in rrdtool runnin on Windows<BR>> > Date: Mon, 20 Aug 2012 15:21:36 +0200<BR>> ><BR>> ><BR>> ><BR>> ><BR>> > I get the non-ASCII Characters in the graph - by changing the character set of the editor which is used to create the batch files for the rrdgraph command from ANSI to CP850.<BR>> ><BR>> > But unfortunately I am still not able to chage the language settings for the axis labels. I tried different environment variables (LANGUAGE, LANG, LOCALE) set to different values (DE, de, DE_de, de_DE, de_de) without success. The axis lables are always in english.<BR>> ><BR>> > Anyone any idea?<BR>> ><BR>> > Piet<BR>> ><BR>> ><BR>> ><BR>> ><BR>> ><BR>> > From: s.shipway@auckland.ac.nz<BR>> > To: pweischer@msn.com; rrd-users@lists.oetiker.ch<BR>> > Subject: RE: [rrd-users] Special language dependent characters in rrdtool runnin on Windows<BR>> > Date: Sun, 19 Aug 2012 21:38:23 +0000<BR>> ><BR>> ><BR>> ><BR>> ><BR>> ><BR>> ><BR>> ><BR>> > The axis labels come from the strftime library, which picks the abbreviation according to the Language settings. Set the environment LANG=de (I think) to make it pick German. However, under Windows, it should be picking this up from the internationalisation settings picked in the Windows OS?<BR>> ><BR>> > To get non-ASCII characters inside the graph is a bit harder, though I believe it is possible under RRDTool 1.3 and later. I?ve not tried this yet, but I think you need to use the ?font option to specify a TrueType font that has the required characters first. EG: --font ?DEFAULT:0:Courier New? will change the default font name for all text to ?Courier New?. See the documentation here http://oss.oetiker.ch/rrdtool/doc/rrdgraph.en.html<BR>> ><BR>> > Steve<BR>> ><BR>> ><BR>> ><BR>> ><BR>> ><BR>> > Steve Shipway<BR>> > ITS Unix Services Design Lead<BR>> > University of Auckland, New Zealand<BR>> > Floor 1, 58 Symonds Street, Auckland<BR>> > Phone: +64 (0)9 3737599 ext 86487<BR>> > DDI: +64 (0)9 924 6487<BR>> > Mobile: +64 (0)21 753 189<BR>> > Email: s.shipway@auckland.ac.nz<BR>> > P Please consider the environment before printing this e-mail<BR>> ><BR>> ><BR>> ><BR>> ><BR>> ><BR>> > From: rrd-users-bounces+s.shipway=auckland.ac.nz@lists.oetiker.ch [mailto:rrd-users-bounces+s.shipway=auckland.ac.nz@lists.oetiker.ch] On Behalf Of Peter Weischer<BR>> > Sent: Monday, 20 August 2012 2:20 a.m.<BR>> > To: rrd-users@lists.oetiker.ch<BR>> > Subject: [rrd-users] Special language dependent characters in rrdtool runnin on Windows<BR>> ><BR>> > Hello,<BR>> ><BR>> > If running rrdtool (1.4.5) in Windows environment, I am not able to enter special German characters (like äöüß etc.) anywhere inside a graph (like in GPRINT, TITLE, COMMENT etc.).<BR>> ><BR>> > In addition, I would like to configure German labels on the axis like ?Mon,Die, Mit,Don, Fre, Sam, Son? instead of ?Mon, Tue, Wed, Thu, Fri, Sat, Sun?.<BR>> > The documentation says, these strings depend on the current locale ? but how can I set the current locale for rrdtool in a Windows environment?<BR>> ><BR>> > I do not use Perl ? just rrdtool.exe.<BR>> ><BR>> > Any hint would be very much appreciated!<BR>> ><BR>> > Piet<BR>> ><BR>> <BR>> -- <BR>> Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland<BR>> http://it.oetiker.ch tobi@oetiker.ch ++41 62 775 9902 / sb: -9900<BR></DIV>                                            </div></body>
</html>