AFAICT the default fsencoding is read only at python startup and can not be changed later. The dbus activation does run the aptd without a env (well, just a minimal one).
<cjwatson> Or else there needs to be a way to break the caching when we change Python's locale at run-time <cjwatson> That might be a good idea anyway <mvo> cjwatson: yeah, that would be the cleanest I think, ensuring this is reset on setlocale() <pitti> yeah, a locale.setlocale() call ought to change the fs encoding, toovalid env Allowing to change the encoding later is probably the best option. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1058038 Title: <class 'UnicodeEncodeError'>: 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/aptdaemon/+bug/1058038/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
