Skip to contentSkip to conversation

linux-next: build failure after merge of the cgroup tree

DISCUSSION Stephen Rothwell 3 participants 5 messages Jul 12, 2024 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the cgroup tree, today's linux-next build (htmldocs) failed like this:

Sphinx parallel build error:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfd in position 558: invalid start byte

Caused by commit

704f684e15ad ("cgroup: Add Michal Koutný as a maintainer")

I tracked this down using

git diff stable.. | cat -v | grep -F 'M-}'

and finding the commit that added the line that was output. I tested it by building with the commit temporarily reverted. I have left that commit in today's linux-next.

Clearly (I think) there is nothing wrong with the commit, but the Sphinx utf-8 decoder also clearly does not think it is valid UTF-8 :-(

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw

Hi all,

Quoted 13 lines · On Fri, 12 Jul 2024 16:43:54 +1000 Stephen Rothwell <[email protected]>…

After merging the cgroup tree, today's linux-next build (htmldocs) failed like this:

Sphinx parallel build error:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfd in position 558: invalid start byte

Caused by commit

704f684e15ad ("cgroup: Add Michal Koutný as a maintainer")

I tracked this down using

Quoted 8 lines

git diff stable.. | cat -v | grep -F 'M-}'

and finding the commit that added the line that was output. I tested it by building with the commit temporarily reverted. I have left that commit in today's linux-next.

Clearly (I think) there is nothing wrong with the commit, but the Sphinx utf-8 decoder also clearly does not think it is valid UTF-8 :-(

Actually my character map app says that it should be the two bytes 0xC3 0xBD in UTF-8 (it is 0x00FD in UTF-16).

Signature · 2 lines
Cheers,
Stephen Rothwell
#2 lore raw
Quoted 22 lines · Stephen Rothwell

Hi all,

Quoted 19 lines · On Fri, 12 Jul 2024 16:43:54 +1000 Stephen Rothwell <[email protected]>…

After merging the cgroup tree, today's linux-next build (htmldocs) failed like this:

Sphinx parallel build error:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfd in position 558: invalid start byte

Caused by commit

704f684e15ad ("cgroup: Add Michal Koutný as a maintainer")

I tracked this down using

git diff stable.. | cat -v | grep -F 'M-}'

and finding the commit that added the line that was output. I tested it by building with the commit temporarily reverted. I have left that commit in today's linux-next.

Quoted 5 lines
Quoted 2 lines

Clearly (I think) there is nothing wrong with the commit, but the Sphinx utf-8 decoder also clearly does not think it is valid UTF-8 :-(

Actually my character map app says that it should be the two bytes 0xC3 0xBD in UTF-8 (it is 0x00FD in UTF-16).

As you observed, the patch is encoded in ISO-8859, not UTF8; that doesn't fit well in a file that uses UTF8. One could argue that Sphinx should be a bit more robust, but satisfactory results will not be had regardless.

An encoding check might be a useful thing to have in checkpatch.pl, methinks.

jon

#3 lore raw

Hello,

Quoted 10 lines · Jonathan Corbet
Quoted 2 lines

Actually my character map app says that it should be the two bytes 0xC3 0xBD in UTF-8 (it is 0x00FD in UTF-16).

As you observed, the patch is encoded in ISO-8859, not UTF8; that doesn't fit well in a file that uses UTF8. One could argue that Sphinx should be a bit more robust, but satisfactory results will not be had regardless.

An encoding check might be a useful thing to have in checkpatch.pl, methinks.

Local env is utf-8 but I saved the email from mutt and then applied it, so maybe that's why it became iso-8859? Anyways, I'll fix it up.

Thanks.

Signature · 1 line
tejun
#4 lore raw
Quoted 11 lines · Tejun Heo

Hello,

Quoted 8 lines · Jonathan Corbet
Quoted 2 lines

Actually my character map app says that it should be the two bytes 0xC3 0xBD in UTF-8 (it is 0x00FD in UTF-16).

As you observed, the patch is encoded in ISO-8859, not UTF8; that doesn't fit well in a file that uses UTF8. One could argue that Sphinx should be a bit more robust, but satisfactory results will not be had regardless.

Quoted 5 lines
Quoted 2 lines

An encoding check might be a useful thing to have in checkpatch.pl, methinks.

Local env is utf-8 but I saved the email from mutt and then applied it, so maybe that's why it became iso-8859? Anyways, I'll fix it up.

I redid the commit locally and am seeing C3 BD for both instances of ý.

Thanks.

Signature · 1 line
tejun