[rrd-users] rrdtool::graph and German weekday names

Tobias Oetiker tobi at oetiker.ch
Sun Nov 5 11:56:05 CET 2017


Hi Joachim

----- On Nov 4, 2017, at 12:13 PM, Joachim Hartmann joachim.hartmann at gmx-topmail.de wrote:

> Hello Tobi, hello Heinrich,
> Am 02.11.2017 um 23:38 schrieb Heinrich Schnorrenberg:
>> Hi Jochen
>> 
>> 
>> I just checked it on my raspi . here it works.  the script is :
>> 
>> hope that helps
>> 
>> regards Heinrich
>> 
> I'm sorry, I didn't get back to you until now! I was out of town for two
> days. I'm a bloody layman about pearls:
> How do I run the script as cgi?
> This script shows the correct result on my command line!
> 
> +++++++++++++++++++++++++++++++++++++++++++++++++++++
> #! /usr/bin/perl -w
> #
> use warnings;
> use POSIX qw (locale_h);
> use locale;
> use POSIX qw (strftime);
> 
> 
> #
> for (1... 7) {
>    $weekday[$_] = strftime ("%a", 0,0,0,0, $_, 3,96);
>    printf "$weekday[$_]\n";
> }
> ++++++++++++++++++++++++++++++++++++++++++++++++++++
> #~# perl test_locale.pl
> Mo
> Di
> Mi
> Do
> Fr
> Sa
> So
> #~#
> ++++++++++++++++++++++++++++++++++++++++++++++++++++
> 
> Only the question is, is that what Tobi meant!

what I meant is that the locale settings could be different when running this under the webservers control as a cgi 

so you have to make sure the locale settings are set for cgis as well.

cheers
tobi

> 
> --
> Gruß aus der Stadt der CeBIT
> Jochen

-- 
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
www.oetiker.ch tobi at oetiker.ch +41 62 775 9902



More information about the rrd-users mailing list