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.
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.