Comment 6 for bug 797246

Revision history for this message
Vincent Ladeuil (vila) wrote : Re: [Bug 797246] Re: UnicodeDecodeError: 'utf8' codec can't decode byte 0xe1 in position 105: invalid continuation byte

>>>>> Libor Jelinek <email address hidden> writes:

    > Vicent, perfect! You was right! You saved my ass :-) But how did
    > you observe it? Nowhere in traceback is any indication then error
    > is caused by not UTF8 in authentication.conf?

Well, the traceback hinted authentication.conf:

 File "bzrlib\config.pyo", line 1366, in get_credentials

then

  File "bzrlib\util\configobj\configobj.pyo", line 1276, in _load
  File "bzrlib\util\configobj\configobj.pyo", line 1412, in _handle_bom
  File "bzrlib\util\configobj\configobj.pyo", line 1472, in _decode

pretty much says 'loading the file content and decoding'.

mgz later mark this bug as a dupe, 'cause we encountered the issue in the
past. But that was in other config files which use a different code path
so we may want to de-dupe this one to provide a better error message for
authentication.conf.