Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 309401

Summary: sys-apps/portage[python3] repoman chokes on hollow's name
Product: Portage Development Reporter: Nathan Phillip Brink (binki) (RETIRED) <binki>
Component: RepomanAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal Keywords: InVCS
Priority: High    
Version: 2.2   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 335925    
Attachments: /tmp/emerge-info.txt
use UTF-8 encoding, to avoid UnicodeDecodeError with python3

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 :-)