[smokeping-users] Re: SmokePing 2.0rc5, RRDtool 1.2.11 and UTF-8

Erich Titl erich.titl at think.ch
Tue Aug 16 08:46:02 MEST 2005


Tobias

Tobias Oetiker wrote:
> In utf8 ä would be represented by two characters where as all normal
> ascii characters a, b, c, 1, 6 ... are each represented by a single
> chartacter ... so if ä is only one character this means you are
> using latin1 and rrdtool will fall back to latin1 interpretation
> since it does not understand ä in utf-8 context ... the webbrowser
> though will not act so gracefully probably and produce a ? or
> something instead ...

indeed it does...

Again, back to square 1, where I definitely used utf-8

these are the settings when editing the config file:

mrtg:/usr/local/smokeping/etc # locale
LANG=en_US.utf8
LC_CTYPE="en_US.utf8"
LC_NUMERIC="en_US.utf8"
LC_TIME="en_US.utf8"
LC_COLLATE="en_US.utf8"
LC_MONETARY="en_US.utf8"
LC_MESSAGES="en_US.utf8"
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT="en_US.utf8"
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=en_US.utf8


again the infamous Bättwil config entry

          +   +       B   a   e   t   t   w   i   l  \n  \n   m   e   n
0006060 2075 203d c342 74a4 7774 6c69 740a 7469
          u       =       B 303 244   t   t   w   i   l  \n   t   i   t
0006100 656c 3d20 4220 a4c3 7474 6977 206c 3031
          l   e       =       B 303 244   t   t   w   i   l       1   0
0006120 322e 3035 362e 312e 680a 736f 2074 203d
          .   2   5   0   .   6   .   1  \n   h   o   s   t       =
0006140 3031 322e 3035 362e 312e 0a0a 2b2b 202b
          1   0   .   2   5   0   .   6   .   1  \n  \n   +   +   +

To my naked eye this looks like UTF-8

And indeed it is rendered correctly in html.
But now the rendering in the mini panels is incorrect.

Let's have a look at smokeping.cgi

...
use Smokeping 1.99006;
use POSIX;

setlocale (LC_ALL,"en_US.utf8");
Smokeping::cgi("/usr/local/smokeping/etc/config");
...

Is there anything else I can do to debug this thing? I have
rrdtool-1.0.49. What library is used to render the mini panels?

Thanks
Erich

--
Unsubscribe mailto:smokeping-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:smokeping-users-request at list.ee.ethz.ch?subject=help
Archive     http://lists.ee.ethz.ch/smokeping-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the smokeping-users mailing list