Gioele Barabucci:
Package: debhelper
Version: 13.9.1
Severity: important

When the debhelper's testsuite is run in an environment where `LC_ALL` is not `C.UTF-8`, various warnings are printed and some tests fail (for example those of dh_installchangelogs).

The solution is probably to set `LC_ALL=C.UTF-8`, but where should it be set? In debian/rules? In the testsuite? In the single tests?

Log of failures (run with `LC_ALL=de_DE.UTF-8`):

```
[...]
```

Regards,


Hi,

I think the problem is the new changelog pruning test. In that test, we now generates changelog entries manually via perl using Time::Piece. As far as I can tell, Time::Piece is respecting locale on output (strftime). However, d/changelog must always use en_US/en_GB for the month name and that (correctly) trips dh_installchangelog.

I was hoping it was simple to make Time::Piece generate timestamps in a specified locale, but I cannot find an option for doing that. So we may have to solve to forcing that test to run under LC_ALL when generating the changelog[1].

Can I convince you to do a follow up patch for fixing this.

Thanks,
~Niels

[1]: Ideally, we would have dh_installchangelog run under any locale in the tests and it should still work. But if it is non-trivially or just unwieldy, having the entire test run under LC_ALL=C.UTF-8 will suffice.

Reply via email to