CodeChecker 6.29+ ignores locale settings and forces UTF-8
I maintainer di solito rispondono entro 8 giorni
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Start by locating the code that formats plaintext output for CodeChecker version and checking how it selects box-drawing characters. Reproduce with LC_ALL=C LANG=C TERM=dumb CodeChecker version and inspect the existing tests for version output. Done means the output uses ASCII in the reported environment while retaining the current UTF-8 formatting otherwise; pull request #5123 is already open for this issue.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Describe the bug
Since version 6.29, CodeChecker formats plaintext output using multi-byte UTF-8 box-drawing characters. While visually appealing in interactive terminals, this creates a regression for headless environments, CI pipelines (like Jenkins), and ASCII-only wrapper scripts.
When CodeChecker output is piped to a Jenkins console or an ASCII-expecting log viewer, the UTF-8 sequences render as gibberish. The core issue is that CodeChecker currently ignores the standard POSIX environment variables (LC_ALL=C, LANG=C, TERM=dumb) that dictate character encoding and terminal capability constraints.
CodeChecker version
[INFO 2026-10-02 10:38:53] - CodeChecker analyzer version:
┌──────────────────────┬──────────────────────────────────────────┐
│ Kind │ Version │
├──────────────────────┼──────────────────────────────────────────┤
│ Base package version │ 6.29.0 │
│ Package build date │ 2026-09-11T09:30 │
│ Git commit ID (hash) │ a259e69d3d5e8dc083c5d60219a8668b5e3c5084 │
│ Git tag information │ 6.29 │
└──────────────────────┴──────────────────────────────────────────┘
[INFO 2026-10-02 10:38:53] - CodeChecker web version:
┌─────────────────────────────────────┬──────────────────────────────────────────┐
│ Kind │ Version │
├─────────────────────────────────────┼──────────────────────────────────────────┤
│ Base package version │ 6.29.0 │
│ Package build date │ 2026-09-11T09:30 │
│ Git commit ID (hash) │ a259e69d3d5e8dc083c5d60219a8668b5e3c5084 │
│ Git tag information │ 6.29 │
│ Server supported Thrift API version │ 6.74 │
│ Client Thrift API version │ 6.74 │
└─────────────────────────────────────┴──────────────────────────────────────────┘
To Reproduce
Steps to reproduce the behaviour:
- Force a strict ASCII environment using standard POSIX variables:
LC_ALL=C LANG=C TERM=dumb CodeChecker version - Pipe the output to an ASCII-only viewer or Jenkins console.
Expected behaviour
CodeChecker should inspect LC_ALL and LANG environment variables. If a non-UTF-8 locale (such as C or POSIX) is detected, it should automatically degrade to a standard ASCII-only format.
Disclaimer: I wrote the issue manually but used Gemini to sharpen up the technical details in the description.
- Lingua principale
- Python
- Stelle
- 2.6k
- Fork
- 494
- Merge medio
- 9g 2h
- PR unite (30g)
- 23
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Ericsson/codechecker
-
infer analyzer does not work with --jobsForse già presa @pcbeingused333 l’ha presa 8 giorni fa. Apertagood to go :rocket:
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
Ericsson/codechecker#5110 ·
I maintainer di solito rispondono entro 8 giorni
-
Bug Report: diagtool not found on WindowsForse già presa @pujitha24 l’ha presa 20 giorni fa. Apertagood to go :rocket:
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
Ericsson/codechecker#4802 ·
I maintainer di solito rispondono entro 8 giorni
-
analyzer :chart_with_upwards_trend: CLI :computer: discussion :bulb: enhancement :star2:
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
Ericsson/codechecker#3836 · 2 commenti ·
I maintainer di solito rispondono entro 8 giorni
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
Ericsson/codechecker#5165 ·
I maintainer di solito rispondono entro 8 giorni
-
Cppcheck addon reports are dropped since 6.27 (regression from #4690)Forse già presa @pcbeingused333 l’ha presa 9 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 76/100
Ericsson/codechecker#5161 ·
I maintainer di solito rispondono entro 8 giorni
Tutte le issue di Ericsson/codechecker
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
FinanceFlash/unvibecode#509 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
FAIRmat-NFDI/nomad-distro-dev#161 ·
-
bug v2
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
modelcontextprotocol/python-sdk#3821 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug severity:low
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 2 giorni
-
Log-odds calibration uses upper middle score instead of median for even candidate setsForse già presa @flysheep-ai l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno