self-hosting repo available

Lele Gaifax lele at
Mon Apr 11 10:18:12 BST 2005

>>>>> "Erik" == Erik Bågfors <zindar at> writes:

    Erik> in create_tracefile t.write(' by %s on %s\n' %
    Erik> (bzrlib.osutils.username(), socket.getfqdn())) File
    Erik> "/usr/lib/python2.4/", line 444, in write return
    Erik> self.writer.write(data) File "/usr/lib/python2.4/",
    Erik> line 178, in write data, consumed = self.encode(object,
    Erik> self.errors) UnicodeDecodeError: 'ascii' codec can't decode
    Erik> byte 0xc3 in position 11: ordinal not in range(128) [Exit 1
    Erik> ]

    Erik> What can be the cause of this?

By any chance it's related to an encoding mismatch between what
osutils.username() collects and your environment, that appear to be

Maybe your system does not setup the Python environment appropriately:
on my Debian machines I have to tweak /etc/python2.3/ to enable
the default encoding machinery.

What does the following

    $ python

    >>> import sys
    >>> print sys.getdefaultencoding()

produce for you?

bye, lele.
nickname: Lele Gaifax	| Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas	| comincerò ad aver paura di chi mi copia.
email: lele at	|		-- Fortunato Depero, 1929.

More information about the bazaar mailing list