Re: [PATCH v2 5/5] common: Convert *.c/h from UTF-8 to ASCII enconfing

Tom Rini <[email protected]>
Newsgroups io.groups.u-boot-amlogic,org.u-boot-project.lists.u-boot
Message-ID <20240416162807.GP1054907@bill-the-cat>
On Tue, Apr 16, 2024 at 06:19:48PM +0200, Heinrich Schuchardt wrote:
> On 16.04.24 18:06, Tom Rini wrote:
> > On Tue, Apr 16, 2024 at 08:55:19AM +0200, Michal Simek wrote:
> > 
> > > Convert UTF-8 chars to ASCII in cases where make sense. No Copyright or
> > > names are converted.
> > > 
> > > Signed-off-by: Michal Simek <[email protected]>
> > > 
> > 
> > Reviewed-by: Tom Rini <[email protected]>
> > 
> > Now, how did you test / find these? Given names a CI test is unlikely
> > to be doable but if it's otherwise scriptable I can put it in my loops
> > and just fixup as needed (like I do today for adding <common.h> for
> > example).
> > 
> 
> There seem no to be too many non-ASCI strings outside of comments.
> Should we care about non-ASCII comments?
> 
> $ find . -name '*.h' -exec grep -P -Hn "[^\x00-\x7F]" {} \; | grep -v
> ':\s*[\/\*']
> ./include/configs/tec-ng.h:13:#define CFG_TEGRA_BOARD_STRING    "Avionic
> Design Tamonten™ NG Evaluation Carrier"
> ./arch/mips/mach-octeon/include/mach/cvmx-pko3.h:369:   MEMALG_SUB = 9,
>      /* mem = mem – PKO_SEND_MEM_S[OFFSET] */
> 
> $ find . -name '*.c' -exec grep -P -Hn "[^\x00-\x7F]" {} \; | grep -v
> ':\s*[\/\*']
> ./drivers/mtd/nand/raw/nand_ids.c:65:   {"H27QCG8T2E5R‐BCF 64G 3.3V 8-bit",
> ./drivers/video/dw_mipi_dsi.c:861:MODULE_AUTHOR("Yannick Fertré
> <[email protected]>");
> ./board/bosch/acc/acc.c:440:    .SRT = 0, // Set to 1 for temperatures
> above 85°C
> ./cmd/2048.c:65:                                printf("   ·   ");
> ./cmd/2048.c:79:        printf("        ←, ↑, →, ↓ or q        \n");

I think we need to keep the "2048" game ones as it's part of the reason
(can we display certain things properly) it exists but comments and
general strings should be fixed. And I think I can use the above
examples to put something in to my scripts to catch new additions.
Thanks!

-- 
Tom
signature.asc (application/pgp-signature, 659 B)
-----BEGIN PGP SIGNATURE-----

iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmYepxEACgkQFHw5/5Y0
tyxKngv+KN55TwUiPhzrmZO2E12hsvfYQydZ4xJsZ4fieMjAzsN54feusrRz29cQ
hjWIR8ZsIHFVdZ9nMAuI6jB1Oz1W8Y2ku5CgHRjq7J5Qybtu5Wr4x9myGNjPaUVz
UaatipZz0t6ENjMt9R0UAON15wZeX8tjsSIvs2Rv82sznSSUYxICnUkPgYDO1ace
MQjpWgQlqx/0p3wmmDd9GCCgxL3EAzvMAvZ0LifmJtwQFo1XzZ8T2gRaWMtUhjKQ
FcNwnt8oWFTwfwE7H1G97vopNTI5aOeeBmZTOdKBrbr4bf1BEXiUDIKVtYORtzJA
Zh4gz0l6TBMuZd3hXn9KPh8zr9GiK3mPOXqdF8guY6T9qh8n3hvvEHVEdw8JOzqs
eDOCHo418A33Ls3uHyGVzuCkia+CAE/EqF8fe13TqBKE/G5kjUUE1C5PMFPYy2TM
JGdiGIc0PFpScZIjvly818MwfH248mbI6ApQq0o8KG9p9Osl95D6kkBraJYSF+Xh
MYkTRKnc
=ZzGS
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.