Re: [PATCH 0/2] docs: Programmatically render MAINTAINERS into ReST

From: Jonathan Corbet
Date: Tue Oct 01 2019 - 13:35:10 EST


On Tue, 1 Oct 2019 12:09:30 -0300
Mauro Carvalho Chehab <mchehab+samsung@xxxxxxxxxx> wrote:

> > Sphinx parallel build error:
> > UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 8: ordinal not in range(128)
> >
> > For extra fun, the build process simply hangs, requiring a ^C to blow it
> > away. You've managed to get new behavior out of Sphinx that I've not seen
> > before, congratulations :)
> >
> > This almost certainly has to do with the fact that I'm (intentionally)
> > running the Python2 Sphinx build here. Something's not doing unicode that
> > should be.
> >
> > I would suggest that we might just want to repair this before merging this
> > feature. Either that, or we bite the bullet and deprecate the use of
> > Python 2 entirely - something that's probably not too far into our future
> > regardless. Anybody have thoughts on that matter?
>
> I'm almost sure we got this already. If I'm not mistaken, the solution
> is to add the encoding line after shebang.

As mentioned before, that's not it. The problem is that we're feeding
UTF8 into Sphinx as an ordinary str, then sphinx is trying to decode it
as ASCII. The attached hack makes things work.

Kees, I can either just keep this fix (breaking bisectability of the docs
build :) or you can send a new version - up to you.

Thanks,

jon