Summary: | sys-apps/portage-2.1.11.60: repoman fails with some characters in commit message | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Pacho Ramos <pacho> |
Component: | Repoman | Assignee: | Portage team <dev-portage> |
Status: | RESOLVED OBSOLETE | ||
Severity: | normal | CC: | yngwin |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=562108 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Pacho Ramos
![]() (In reply to comment #0) > Traceback (most recent call last): > File "/usr/bin/repoman", line 2685, in <module> > commitmessage += commit_footer > UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 in position 55: > ordinal not in range(128) This is confusing, because both of those strings are supposed to be unicode, so there should not be any unicode decode operations happening there. Which python interpreter is repoman using? Check `head -n1 /usr/bin/repoman` to find out. Also, please post the output of `locale`. (In reply to comment #1) > (In reply to comment #0) > > Traceback (most recent call last): > > File "/usr/bin/repoman", line 2685, in <module> > > commitmessage += commit_footer > > UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 in position 55: > > ordinal not in range(128) > > This is confusing, because both of those strings are supposed to be unicode, > so there should not be any unicode decode operations happening there. > > Which python interpreter is repoman using? Check `head -n1 /usr/bin/repoman` > to find out. Also, please post the output of `locale`. $ head -n1 /usr/bin/repoman #!/usr/bin/python -O (??!) $ emerge -Opv portage These are the packages that would be merged, in order: [ebuild R ~] sys-apps/portage-2.1.11.60 USE="doc (ipc) -build -epydoc (-pypy2_0) -python2 -python3 (-selinux) -xattr" LINGUAS="-pl -ru" PYTHON_TARGETS="python2_7 python3_2 -pypy1_9 -pypy2_0 -python2_6 -python3_1 (-python3_3) (-python3_4)" 0 kB $ locale LANG=es_ES.UTF-8 LC_CTYPE="es_ES.UTF-8" LC_NUMERIC="es_ES.UTF-8" LC_TIME="es_ES.UTF-8" LC_COLLATE=C LC_MONETARY="es_ES.UTF-8" LC_MESSAGES="es_ES.UTF-8" LC_PAPER="es_ES.UTF-8" LC_NAME="es_ES.UTF-8" LC_ADDRESS="es_ES.UTF-8" LC_TELEPHONE="es_ES.UTF-8" LC_MEASUREMENT="es_ES.UTF-8" LC_IDENTIFICATION="es_ES.UTF-8" LC_ALL= (In reply to comment #2) > $ head -n1 /usr/bin/repoman > #!/usr/bin/python -O Which version does `/usr/bin/python -V` report? (In reply to comment #3) > (In reply to comment #2) > > $ head -n1 /usr/bin/repoman > > #!/usr/bin/python -O > > Which version does `/usr/bin/python -V` report? $ /usr/bin/python -V Python 2.7.3 Does it work with the same commit message if you don't use the -m argument and do it through $EDITOR instead? (In reply to comment #5) > Does it work with the same commit message if you don't use the -m argument > and do it through $EDITOR instead? How can I go to that $EDITOR way? (I only know to use "-m" or use echangelog) Thanks If you don't use -m then it will automatically call $EDITOR. It works with editor but not with "-m" I'm going to close this one as obsolete. There have been so many unicode handling improvements. Plus you have a newer bug 562108 for this same problem. For the -m option, we could use surrogateescape shenanigans like we do in bin/install.py. |