[buildd-tools-devel] Bug#813895: sbuild: invocations of strftime should be locale independent
Johannes Schauer
josch at debian.org
Sat Feb 6 12:30:35 UTC 2016
Source: sbuild
Severity: minor
Hi,
just as a reminder to not forget about this:
At several places sbuild calls strftime with locale dependent format
strings. In these cases, sbuild should behave independent of the locale
of the sbuild user. Something like this might be appropriate:
use POSIX qw(locale_h);
$old_locale = setlocale(LC_TIME);
setlocale(LC_TIME, "C.UTF8");
strftime "%a, %d %b %Y %H:%M:%S UTC", gmtime();
setlocale(LC_TIME, $old_locale);
cheers, josch
More information about the Buildd-tools-devel
mailing list