]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
clear LC_ALL when setting LC_TIME in rpn2 test 1154/head
authorMichael Hudson-Doyle <michael.hudson@canonical.com>
Wed, 26 Jan 2022 02:50:18 +0000 (15:50 +1300)
committerGitHub <noreply@github.com>
Wed, 26 Jan 2022 02:50:18 +0000 (15:50 +1300)
This test was failing when LC_ALL was set to C.UTF-8 and using the C.UTF-8 locale which is part of glibc 2.35, which differs in a very minor way to that that has been used by Debian/Ubuntu for years. The tests sets LC_TIME to C, presumably to try to isolate itself from such things, but that does not have any effect if LC_ALL is set in the build environment.

tests/rpn2

index 9f9852f5868d79e18aa1fc13a6985f2b3230703d..b64491d206049f767116dddfcaa35579eb4fee49 100755 (executable)
@@ -16,7 +16,7 @@ report "create"
 $RRDTOOL update $RRD 1167487200:0 1167494400:720 1167501600:1440 1167508800:2160 1167516000:2880 1167523200:3600 1167530400:4320 1167537600:5040 1167544800:5760 1167552000:6480 1167559200:7200 1167566400:7920 1167573600:8640 1167580800:9360 1167588000:10080 1167595200:10800 1167602400:11520 1167609600:12240 1167616800:12960
 
 report "update"
-LC_TIME=C TZ=Europe/Zurich $RRDTOOL xport \
+LC_ALL= LC_TIME=C TZ=Europe/Zurich $RRDTOOL xport \
       --json \
       --start  1167487200 --end 1167616800       \
       DEF:myspeed=$RRD:speed:AVERAGE              \