[elbe-devel] [PATCH 1/1] soapclient: Fix print's ascii fallback on wait_busy

Martin Petzold martin.petzold at tavla.de
Tue Aug 11 17:30:57 CEST 2020


What is the best way to test such changes in my local build environment?

Thanks

Martin

Am 11.08.20 um 15:53 schrieb bage at linutronix.de:
> From: Bastian Germann <bage at linutronix.de>
>
> print() takes a string in Python3 and will use ascii as an encoding
> fallback, which makes Elbe error on any non-ascii character.
> Fix that by encoding the argument as utf-8.
>
> Co-Developed-by: Olivier Dion <dion at linutronix.de>
> Signed-off-by: Bastian Germann <bage at linutronix.de>
> ---
>   elbepack/soapclient.py | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/elbepack/soapclient.py b/elbepack/soapclient.py
> index c8acc217c..bc27fa7f2 100644
> --- a/elbepack/soapclient.py
> +++ b/elbepack/soapclient.py
> @@ -637,7 +637,7 @@ class WaitProjectBusyAction(ClientAction):
>               if msg == 'ELBE-FINISH':
>                   break
>   
> -            print(msg)
> +            print(msg.encode(encoding="utf-8", errors="replace"))
>   
>           # exited the while loop -> the project is not busy anymore,
>           # check, whether everything is ok.



More information about the elbe-devel mailing list