This fixes displaying the URLs:
https://pagure.io/u-boot/blob/aaf098cfeed04595d4c5100ffd39095d79edbf90/f/MAINTAINERS
or
https://pagure.io/u-boot/blob/0c8721a466b5e0eca7e7fbe1007777fa82100541/f/CREDITS
(among others).
Basically, there is something in those files that does not please python.
When guessing the encoding, we find them both as: ISO-8859-8 but in
both cases we fail to decode them using this encoding.
As a fallback, we try decoding them as UTF-8, which also fails.
In this case, with this path, we just bail and return the string as bytes
as it was given to us.
This fixes displaying the URLs:
https://pagure.io/u-boot/blob/aaf098cfeed04595d4c5100ffd39095d79edbf90/f/MAINTAINERS
or
https://pagure.io/u-boot/blob/0c8721a466b5e0eca7e7fbe1007777fa82100541/f/CREDITS
(among others).
Basically, there is something in those files that does not please python.
When guessing the encoding, we find them both as:
ISO-8859-8but inboth cases we fail to decode them using this encoding.
As a fallback, we try decoding them as UTF-8, which also fails.
In this case, with this path, we just bail and return the string as bytes
as it was given to us.