<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Jochen<div class=""><br class=""><div class="">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 18px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><br class=""></div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 18px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">I just checked it on my raspi . here it works.  the script is :</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 18px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><blockquote type="cite" class="">++++++++++++++++++++++++++++++++++++++++++++++++++++++</blockquote></div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 18px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"> <span style="color: rgb(52, 188, 38); font-family: Menlo; background-color: rgb(255, 255, 255);" class="">#!/usr/bin/perl -w</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(52, 188, 38); background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">#</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(204, 204, 204); background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">use warnings;</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(204, 204, 204); background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">use POSIX qw(locale_h);</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(204, 204, 204); background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">use locale;</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(204, 204, 204); background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">use POSIX qw(strftime);</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255); min-height: 21px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""></span><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255); min-height: 21px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""></span><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(52, 188, 38); background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">#</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #d53bd3" class="">for</span><span style="font-variant-ligatures: no-common-ligatures" class=""> (1..7) {</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">   </span><span style="font-variant-ligatures: no-common-ligatures; color: #33bbc8" class="">$wochentag[$_]</span><span style="font-variant-ligatures: no-common-ligatures" class=""> = strftime(</span><span style="font-variant-ligatures: no-common-ligatures; color: #afad24" class="">"%a"</span><span style="font-variant-ligatures: no-common-ligatures" class="">, 0, 0, 0, </span><span style="font-variant-ligatures: no-common-ligatures; color: #33bbc8" class="">$_,</span><span style="font-variant-ligatures: no-common-ligatures" class=""> 3, 96);</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(175, 173, 36); background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">   </span><span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">printf</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> </span><span style="font-variant-ligatures: no-common-ligatures" class="">"$wochentag[$_]\n"</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">;</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">}</span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 18px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><blockquote type="cite" class="">++++++++++++++++++++++++++++++++++++++++++++++++++++++</blockquote>the output is:</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 18px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><br class=""></div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 18px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(82, 48, 225); background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #34bc26" class=""><b class="">pi@raspberrypi</b></span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">:</span><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">~/public_html/cgi-bin $</b></span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> perl loc.pl</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Mo</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Di</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Mi</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Do</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Fr</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Sa</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">So</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">hope that helps</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">regards Heinrich</span></div></div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 18px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class=""><br class=""></div><br class="Apple-interchange-newline">
</div>
<div><br class=""><blockquote type="cite" class=""><div class="">On 2. Nov 2017, at 11:02, Joachim Hartmann <<a href="mailto:joachim.hartmann@gmx-topmail.de" class="">joachim.hartmann@gmx-topmail.de</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hi Tobi,<br class="">Am 01.11.2017 um 20:19 schrieb Tobias Oetiker:<br class=""><blockquote type="cite" class="">Hi Joachim,<br class="">Tobias Oetiker<br class=""></blockquote><br class=""><blockquote type="cite" class="">I would suggest to use<br class="">use POSIXqw(locale_h);<br class="">use locale;<br class="">setlocale(LC_CTYPE,"de_DE.UTF-8");<br class="">INSIDE the script<br class="">More details on this to be found here <a href="https://perldoc.perl.org/perllocale.html" class="">https://perldoc.perl.org/perllocale.html</a><br class="">Cheers<br class="">Tobi<br class=""></blockquote><br class="">the proposed solution shows no change. I then looked at the recommended web page and ran the following script on the command line:<br class=""><br class="">++++++++++++++++++++++++++++++++++++++++++++++++++++++<br class="">#!/usr/bin/perl<br class="">use POSIX qw(strftime);<br class=""><br class="">for (1..7) {<br class="">    $wochentag[$_] = strftime("%a", 0, 0, 0, $_, 3, 96);<br class="">    printf "$wochentag[$_]\n";<br class="">}<br class="">++++++++++++++++++++++++++++++++++++++++++++++++++++++<br class=""><br class="">Here is the result:<br class=""><br class="">++++++++++++++++++++++++++++++++++++++++++++++++++++++<br class="">#~#. /test_locale. pl<br class="">Mo<br class="">Di<br class="">Wed<br class="">Thu<br class="">Fr<br class="">Sa<br class="">So<br class="">++++++++++++++++++++++++++++++++++++++++++++++++++++++<br class=""><br class="">I think now rather that the solution can be found in rrdtool (1.6.0).<br class="">-- <br class="">Cheers<br class="">Jochen<br class=""><br class="">_______________________________________________<br class="">rrd-users mailing list<br class=""><a href="mailto:rrd-users@lists.oetiker.ch" class="">rrd-users@lists.oetiker.ch</a><br class="">https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users<br class=""></div></div></blockquote></div><br class=""></div></body></html>