[Reportbug-maint] Bug#779200: reportbug: did not show #777125, probably due to encoding issues

Hermann Lauer Hermann.Lauer at iwr.uni-heidelberg.de
Fri Apr 17 11:00:43 UTC 2015

Hello Sandro,

On Wed, Apr 15, 2015 at 09:20:54PM +0100, Sandro Tosi wrote:
> > UnicodeEncodeError: 'ascii' codec can't encode character u'\u25cf' in position 542: ordinal not in range(128)
> I even tried to set LC_ALL=C but I can't replicate this issue: with
> LC_ALL=C I got some weird chars next to "nslcd.service - LSB: LDAP
> connection daemon" instead of the dot that should be there with UTF-8
> encoding.
> So, can you try to edit this file (I know it's bad!)
> /usr/lib/python2.7/dist-packages/reportbug/ui/text_ui.py and change
> fd.write(text)
> into
> fd.write(text.encode('utf-8'))
> and tell me if this fixes the problem?

Yes, now the black big dot is shown correctly with LANG=C.UTF-8.
With LANG=C (or LC_ALL=C) the garbled dot as you described is shown.

Neither settings garbles the screen or leaves you back with
an unresponsible pager, reportbug is behaving as expected.

Many thanks and have a nice weekend,

Netzwerkadministration/Zentrale Dienste, Interdiziplinaeres 
Zentrum fuer wissenschaftliches Rechnen der Universitaet Heidelberg
IWR; INF 368; 69120 Heidelberg; Tel: (06221)54-8236 Fax: -5224
Email: Hermann.Lauer at iwr.uni-heidelberg.de

More information about the Reportbug-maint mailing list