don't use use locale.getpreferredencoding(False)
don't use use locale.getpreferredencoding(False)

instead use default locale.getpreferredencoding() in text.getdefaultencoding,
which seems better behaved.

ipython/ipython,ipython/ipython