Output of gajim-remote is in UTF8 on non-UTF8 systems
Hi, my system runs on ISO-8859-2 and the output of the gajim-remote is unreadable. Its a UTF8, but my console is expecting ISO-8859-2.
Ive tried either
lzap@teepee /usr/share/gajim/src $ locale
LANG=cs_CZ
LC_CTYPE="cs_CZ.ISO-8859-2"
LC_NUMERIC="cs_CZ.ISO-8859-2"
LC_TIME="cs_CZ.ISO-8859-2"
LC_COLLATE="cs_CZ.ISO-8859-2"
LC_MONETARY="cs_CZ.ISO-8859-2"
LC_MESSAGES="cs_CZ.ISO-8859-2"
LC_PAPER="cs_CZ.ISO-8859-2"
LC_NAME="cs_CZ.ISO-8859-2"
LC_ADDRESS="cs_CZ.ISO-8859-2"
LC_TELEPHONE="cs_CZ.ISO-8859-2"
LC_MEASUREMENT="cs_CZ.ISO-8859-2"
LC_IDENTIFICATION="cs_CZ.ISO-8859-2"
LC_ALL=cs_CZ.ISO-8859-2
or without the ISO-8859-2 flag (this is default).
I have tried to read the locales and print it on my console:
import sys, os
import gettext
import locale
locale.setlocale(locale.LC_ALL, '')
def test():
t = gettext.translation('gajim','/usr/share/locale')
print t.ugettext("message")
if __name__ == '__main__':
test()
This works fine.
Please note the app window has no problems with encoding. The problem is only in gajim-remote.