[Buildroot] [PATCH v3 5/7] support/testing/infra/emulator.py: update encoding when calling qemu
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Sun Oct 3 09:09:05 UTC 2021
On Sat, 2 Oct 2021 22:28:05 +0200
"Yann E. MORIN" <yann.morin.1998 at free.fr> wrote:
> OK, so there are a lot of ANSI Escape Sequences, which are CSI commands:
>
> 1b 5b 30 35 3b 37 39 48 - ESC [ 05 ; 79 H
>
> This is CSI for "Cursor Position", i.e. move sursor to row 5, column 79.
> OK, it is drawing a box! da is top-left corner, c4 is horizontal line,
> bf is top-right corner, b3 is vertical line, c0 id lower-left corner,
> and d9 is lower-right corner.
>
> This is definitely not ISO-8859-15; it is CP437 [0]:
> https://en.wikipedia.org/wiki/Code_page_437
>
> So, the solution to switch over to iso-8859-15 is not the proper
> solution. We don't want to switch to CP437 either!
Wow, thanks for the investigation!
> What I suggest, instead, is that we tell pexpect.spawn to just fix any
> non-decodable character, by passing the parameter:
> codec_errors='replace'
>
> At least, it makes the two EFI run-test succeed!
>
> If that is OK, I can do that when applying, and fix the commit log
> accordingly.
This indeed looks like a better option.
Thanks again!
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
More information about the buildroot
mailing list