[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#945284: [python-x2go] throws an exception if log messages contain Umlauts



Package: python-x2go
Version: 0.6.0.2-1
Sevrity: important

When launching pyhoca-gui (which is still on Python2 and uses python-x2go underneath) with locale de_DE.UTF-8, some log messages are localized (those that are shown via desktop notifications).

If those log messages contain non-ASCII characters (e.g. Umlauts), then I see the below Python exception:

```
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pyhoca/wxgui/profilemanager.py", line 2498, in OnApplyButton
    icon='profile_save',
File "/usr/lib/python2.7/dist-packages/pyhoca/wxgui/notify.py", line 138, in send self._pyhoca_logger('[%s] %s' % (title.encode(utils.get_encoding()), text.encode(utils.get_encoding())), loglevel=log.loglevel_NOTICE)
  File "/usr/lib/python2.7/dist-packages/x2go/log.py", line 102, in message
    msg = msg.encode(utils.get_encoding())
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 32: ordinal not in range(128)
```

The underlying flaw is in the python-x2go module.

This bug prohibits users to e.g. edit session profiles via the profile manager integrated in PyHoca-GUI.

This issue needs to be solve in Debian testing/unstable and Debian buster.

light+love
Mike Gabriel
--

DAS-NETZWERKTEAM
c\o Technik- und Ökologiezentrum Eckernförde
Mike Gabriel, Marienthaler str. 17, 24340 Eckernförde
mobile: +49 (1520) 1976 148
landline: +49 (4351) 850 8940

GnuPG Fingerprint: 9BFB AEE8 6C0A A5FF BF22  0782 9AF4 6B30 2577 1B31
mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de

Attachment: pgpIct8z1IHaY.pgp
Description: Digitale PGP-Signatur


Reply to: