[rrd-users] Re: Hack for graphics localization and correction of weeks numbers

Thierry Nkaoua tnka at linux-sottises.net
Sun Apr 7 15:52:53 MEST 2002

Thierry Nkaoua a dit:

> -----------------------------
> add:
> setlocale(LC_ALL,"");
> just before the strftime call:
> strftime(graph_label,99,im->xlab_user.stst,localtime(&tilab));
> --------------------------------

if you run your rrdtool scripts from a cronjob, the LANG variable may not
be set
you can just replace the previous setlocale by:

setlocale(LC_ALL," fr_FR");

for french, or with your language code. Have a look at:
if you do not know your language code :))

S'il n'y a pas de solution, c'est qu'il n'y a pas de problème!

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

More information about the rrd-users mailing list