[f21-branch][master][PATCH 2/2] sgallagh: force defaultencoding to utf-8 on live (#1169019)

Colin Walters walters at verbum.org
Wed Dec 3 23:55:56 UTC 2014


On Mon, Dec 1, 2014, at 11:32 PM, Adam Williamson wrote:

> +# force python's default encoding to be utf-8, not ascii. all the ways to
> +# do this are bad, but this at least works for live and non-live.
> +# see RHBZ #1169019, RHBZ #539904
> +reload(sys)
> +sys.setdefaultencoding('utf-8')

See also:
https://mail.python.org/pipermail/python-dev/2008-February/077134.html

I think pygobject still carries that, though I'm only seeing it in the "pygtkcompat" layer.


More information about the anaconda-patches mailing list