> The patch looks wrong.

Can you please tell me what looks wrong?

As far as I can see it mimics the behaviour of the setlocale() call in C, 
where a failure also just gets ignored (e.g. in dselect/main.cc from the dpkg 
package).

I've tested both "apt" and "dpkg" with "LANG=foo" and both do not fail, nor 
issue a warning.

As another example, perl issues a (huge) warning, but also does not fail. I've 
seen this happen also during upgrade - and it would be really bad, if it 
would fail.

Do you see a better approach to avoid this crash?

> And reading the bug, it's due to a breakage of Ubuntu that loses locales.

Sure. The locale setup is broken. But that is likely a temporary problem and 
no reason for apt-listchanges to fail.

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to