diff options
| author | Yunlk <[email protected]> | 2026-10-21 00:12:27 +0800 |
|---|---|---|
| committer | Rbb666 <[email protected]> | 2026-10-22 18:00:03 +0800 |
| commit | 2f7aba80fbbe3e3e44997dfe9819665f01a82534 (patch) | |
| tree | 5e5857fc6b5a30675765b6fc073e2c286331a9ff /bsp/CME_M7/StdPeriph_Driver/src/cmem7_spi.c | |
| parent | e7c293802a3eaef0761a2fea6244382ae42ed00f (diff) | |
[tools] fix: replace console emoji in attachconfig.py
scons --attach prints a check mark / cross emoji as status prefix. On
Windows the standard output encoding follows the locale code page (936/GBK
on a Chinese system), which cannot encode U+2705/U+274C, so Python raises
UnicodeEncodeError and the command aborts:
UnicodeEncodeError: 'gbk' codec can't encode character '\u2705'
File "tools/attachconfig.py", line 18, in GenAttachConfigProject
All three commands go through the same function, so --attach=?,
--attach=<name> and --attach=default were all unusable on such systems.
Replace the emoji with plain ASCII markers and keep the existing ANSI colour
codes, which the other scripts under tools/ already use.
Refs #11906
Diffstat (limited to 'bsp/CME_M7/StdPeriph_Driver/src/cmem7_spi.c')
0 files changed, 0 insertions, 0 deletions
