Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 399451 - dev-python/docutils-0.8.1 fails with UTF8 and python 3.2
Summary: dev-python/docutils-0.8.1 fails with UTF8 and python 3.2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Martin Väth
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-20 02:05 UTC by Ryan Twitchell
Modified: 2012-01-24 15:27 UTC (History)
2 users (show)

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


Attachments
emerge --info (emerge-info,5.10 KB, text/plain)
2012-01-20 02:06 UTC, Ryan Twitchell
Details
Full build.log of failure (build.log,10.72 KB, text/plain)
2012-01-20 02:07 UTC, Ryan Twitchell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Twitchell 2012-01-20 02:05:28 UTC
eix, with doc use flag, fails to build with python 3.2, raising a UnicodeDecodeError.  This appears to result use of an ascii decoder while generating documentation.  Turning off the doc use flag allowed the package to build.

Reproducible: Always
Comment 1 Ryan Twitchell 2012-01-20 02:06:45 UTC
Created attachment 299349 [details]
emerge --info
Comment 2 Ryan Twitchell 2012-01-20 02:07:53 UTC
Created attachment 299351 [details]
Full build.log of failure
Comment 3 Martin Väth 2012-01-21 16:35:57 UTC
eix just calls rst2html.py from docutils.

The real bug seems to be that rst2html.py breaks with python-3.2
if UTF8 input is used. (rst2html.py does not depend on python-2*).

As a workaround, I will remove the Umlaut from my name in the documents
(which was the reason for UTF8), but this is of course only a workaround.

I change the summary correspondingly so that the real bug can be correctly
assigned and fixed.
Comment 4 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2012-01-23 13:41:19 UTC
+*eix-0.23.7 (23 Jan 2012)
+
+  23 Jan 2012; Jeremy Olexa <darkside@gentoo.org> -eix-0.23.6.ebuild,
+  +eix-0.23.7.ebuild:
+  Version bump to fix regressions in last version, fixes bugs 399233, 399117,
+  399451
Comment 5 Arfrever Frehtes Taifersar Arahesis 2012-01-23 16:00:23 UTC
(In reply to comment #3)
> The real bug seems to be that rst2html.py breaks with python-3.2
> if UTF8 input is used. (rst2html.py does not depend on python-2*).

You should call rst2html.py with --input-encoding=utf-8 option.
Comment 6 Martin Väth 2012-01-24 14:00:16 UTC
(In reply to comment #5)
> You should call rst2html.py with --input-encoding=utf-8 option.

Thanks.

Although I do not like that the default input-encoding has a
different meaning for python-3 than for python-2, I understand
why this is so (the behavior was strictly speaking not defined
in python-2), so I leave this bug as fixed.
Comment 7 Arfrever Frehtes Taifersar Arahesis 2012-01-24 15:27:39 UTC
dev-python/docutils-0.9_pre7298 from Progress Overlay contains some improvements and works with UTF-8 characters even if non-UTF-8 locale is used.