[Buildroot] [PATCH v2 1/1] utils/getdeveloperlib.py: explicitly set devs document encoding

Baruch Siach baruch at tkos.co.il
Fri Sep 10 14:39:04 UTC 2021


Hi Peter,

On Fri, Sep 10 2021, Peter Korsgaard wrote:
>>>>>> "James" == James Knight <james.d.knight at live.com> writes:
>
>  > Explicitly indicate the file encoding to UTF-8 for the DEVELOPERS
>  > document. This prevents Unicode decoding errors when printing E-Mail
>  > entries with Unicode characters on systems using an alternative default
>  > encoding (e.g. 'CP1252').
>
>  > This corrects the following observed error:
>
>  >     $ ./utils/get-developers outgoing/*
>  >     Traceback (most recent call last):
>  >       File "utils\get-developers", line 105, in <module>
>  >         __main__()
>  >       File "utils\get-developers", line 47, in __main__
>  >         devs = getdeveloperlib.parse_developers()
>  >       File "...\buildroot\utils\getdeveloperlib.py", line 239, in parse_developers
>  >         for line in f:
>  >       File "...\Python<ver>\lib\encodings\cp1252.py", line 23, in decode
>  >         return codecs.charmap_decode(input,self.errors,decoding_table)[0]
>  >     UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 6659: character maps to <undefined>
>
>  > Signed-off-by: James Knight <james.d.knight at live.com>
>
> Committed to 2021.02.x, 2021.05.x and 2021.08.x, thanks.

Not in 2021.08.x as of 1279d2b13284 ("package/go: security bump version
to 1.16.8").

baruch

-- 
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -


More information about the buildroot mailing list