Use unicode gettext API even under Python 2.
Submitted by Barry Warsaw
Link to original bug (#678342)
Description
This one's a little trickier because it would change the API for Python 2 libpeas plugins. In Python 3, gettext.install() will always ensure _() returns unicodes, which is always the right thing to do. Under Python 2 though, you'll get 8-bit strings, which is almost never right and will cause you to have to do tons of manual conversions.
Better to pass the unicode=True flag to gettext.install() to ensure that _() returns unicodes in Python 2. Note though that you'll have to #ifdef this out for Python 3 (in peas_plugin_loader_python_initialize()) since gettext.install() does not take a unicode argument there (it doesn't need to of course).
Version: git master