[rrd-users] Special language dependent characters in rrdtool runnin on Windows

Steve Shipway s.shipway at auckland.ac.nz
Sun Aug 19 23:38:23 CEST 2012


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?

 

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

 

Steve

 

  _____  

Steve Shipway

ITS Unix Services Design Lead

University of Auckland, New Zealand

Floor 1, 58 Symonds Street, Auckland

Phone: +64 (0)9 3737599 ext 86487

DDI: +64 (0)9 924 6487

Mobile: +64 (0)21 753 189

Email:  <mailto:s.shipway at auckland.ac.nz> s.shipway at auckland.ac.nz

P Please consider the environment before printing this e-mail 

 

 

From: rrd-users-bounces+s.shipway=auckland.ac.nz at lists.oetiker.ch
[mailto:rrd-users-bounces+s.shipway=auckland.ac.nz at lists.oetiker.ch] On
Behalf Of Peter Weischer
Sent: Monday, 20 August 2012 2:20 a.m.
To: rrd-users at lists.oetiker.ch
Subject: [rrd-users] Special language dependent characters in rrdtool runnin
on Windows

 

Hello,

 

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.).

 

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”.

The documentation says, these strings depend on the current locale – but how
can I set the current locale for rrdtool in a Windows environment?

 

I do not use Perl – just rrdtool.exe.

 

Any hint would be very much appreciated!

 

Piet

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/rrd-users/attachments/20120819/1c85054b/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 6080 bytes
Desc: not available
Url : http://lists.oetiker.ch/pipermail/rrd-users/attachments/20120819/1c85054b/attachment.bin 


More information about the rrd-users mailing list