Re: [Cocci] [PATCH] scripts: coccicheck: fix troubles on non-English builds

2021-05-18 Thread Julia Lawall
On Tue, 18 May 2021, Mauro Carvalho Chehab wrote: > When LANG is not set to English, the logic which checks the > number of CPUs fail, as the messages can be localized, and > the logic at: > > THREADS_PER_CORE=$(lscpu | grep "Thread(s) per core: " | tr -cd > "[:digit:]") > > will not get

[Cocci] [PATCH] scripts: coccicheck: fix troubles on non-English builds

2021-05-18 Thread Mauro Carvalho Chehab
When LANG is not set to English, the logic which checks the number of CPUs fail, as the messages can be localized, and the logic at: THREADS_PER_CORE=$(lscpu | grep "Thread(s) per core: " | tr -cd "[:digit:]") will not get the number of threads per core. This causes the script to not run