Re: [PATCH] contrib: add unicode/utf8-dump.py

2021-11-01 Thread Martin Liška
On 11/1/21 16:32, David Malcolm wrote: |Thanks. Here's an updated version of the script that fixes the above issues.| Thanks. Please install it (there are no strict approval rules for contrib folder). Cheers, Martin

[PATCH] contrib: add unicode/utf8-dump.py

2021-11-01 Thread David Malcolm via Gcc-patches
On Mon, 2021-11-01 at 15:36 +0100, Martin Liška wrote: > On 11/1/21 15:14, David Malcolm via Gcc-patches wrote: > > > This script may be useful when debugging issues relating to > > > Unicode encoding (e.g. when investigating source files with > > > bidirectional control characters).| > > I like t

Re: [PATCH] contrib: add unicode/utf8-dump.py

2021-11-01 Thread Martin Liška
On 11/1/21 15:14, David Malcolm via Gcc-patches wrote: |This script may be useful when debugging issues relating to Unicode encoding (e.g. when investigating source files with bidirectional control characters).| I like the script except the following flake8 issues: $ flake8 contrib/unicode/ut

[PATCH] contrib: add unicode/utf8-dump.py

2021-11-01 Thread David Malcolm via Gcc-patches
This script may be useful when debugging issues relating to Unicode encoding (e.g. when investigating source files with bidirectional control characters). It dump a UTF-8 file as a list of numbered lines (mimicking GCC's diagnostic output format), interleaved with lines per character showing the U