Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 309401 - sys-apps/portage[python3] repoman chokes on hollow's name
Summary: sys-apps/portage[python3] repoman chokes on hollow's name
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Repoman (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 335925
  Show dependency tree
 
Reported: 2010-03-14 18:18 UTC by Nathan Phillip Brink (binki) (RETIRED)
Modified: 2010-09-22 04:46 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
/tmp/emerge-info.txt (emerge-info.txt,7.60 KB, text/plain)
2010-03-14 18:23 UTC, Nathan Phillip Brink (binki) (RETIRED)
Details
use UTF-8 encoding, to avoid UnicodeDecodeError with python3 (python3_unicode.patch,850 bytes, patch)
2010-03-14 23:46 UTC, Zac Medico
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2010-03-14 18:18:51 UTC
ChangeLog contains the names of hollow and armin76, both of which contain the 0xc3 char that python3 is complaining about below:

``
ohnobinki@ohnopublishing ~/ohnobinki_overlay/dev-libs/apr-util $ repoman commit -m "Override Makefile's CFLAGS, LDFLAGS, and CPPFLAGS. bug 309335"

RepoMan scours the neighborhood...
>>> Creating Manifest for /home/ohnobinki/ohnobinki_overlay/dev-libs/apr-util

Note: use --include-dev (-d) to check dependencies for 'dev' profiles

* 2 files being committed... 
Traceback (most recent call last):
  File "/usr/bin/repoman", line 2320, in <module>
    mylines = f.readlines()
  File "/usr/lib64/python3.1/encodings/ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 777: ordinal not in range(128)
''

Reproduction procedure, I suppose:
- have latest portage with USE=python3
- Run the following commands:
  $ hg clone -r 702e76a9b004 http://ohnopub.net/hg/ohnobinki_overlay
  $ cd ohnobinki_overlay
  $ wget -O- http://ohnopub.net/~ohnobinki/tmp/apr-util-cxxflags.patch | patch -p1
  $ cd dev-libs/apr-util
  $ repoman commit -m 'blah'
- This last command gives me the backtrace above.
Comment 1 Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2010-03-14 18:23:30 UTC
Created attachment 223539 [details]
/tmp/emerge-info.txt
Comment 2 Zac Medico gentoo-dev 2010-03-14 23:46:05 UTC
Created attachment 223571 [details, diff]
use UTF-8 encoding, to avoid UnicodeDecodeError with python3
Comment 3 Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2010-03-15 03:43:43 UTC
(In reply to comment #2)
> Created an attachment (id=223571) [details]
> use UTF-8 encoding, to avoid UnicodeDecodeError with python3

Thanks, this seems to fix the issue :-)