Codex App code blocks use Japanese CJK fallback glyphs for Chinese text on Japanese macOS
What issue are you seeing?
Chinese text inside fenced code blocks, especially text code blocks in assistant responses, is rendered with Japanese CJK fallback glyphs on macOS when the system language/locale is Japanese.
Normal prose is less affected, but code blocks look visually wrong because the monospace font stack falls back to Japanese glyph variants for Chinese characters. This makes Chinese answers harder to read for users on Japanese macOS.
This seems related to, but more specific than, #21511 and #29827: this report is specifically about code/pre monospace fallback in assistant response Markdown.
What steps can reproduce the bug?
- Use Codex App on macOS with Japanese as the primary system language/locale.
- Ask Codex to respond with a fenced
textcode block containing Simplified Chinese. - Observe Chinese characters inside the code block.
Example content:
````markdown
这是一个中文测试:门、关、说、直、海、骨、令
````
What is the expected behavior?
Chinese text in code blocks should use Chinese CJK glyph variants instead of Japanese glyph variants.
One possible fix would be to add explicit CJK Chinese fallback fonts before the final generic monospace fallback in the code/pre font stack, for example:
--font-mono-default:
ui-monospace,
"SFMono-Regular",
"SF Mono",
Menlo,
Consolas,
"Liberation Mono",
"Noto Sans Mono CJK SC",
"PingFang SC",
"Hiragino Sans GB",
monospace;
For Traditional Chinese users, PingFang TC / Noto Sans Mono CJK TC may also be worth considering.
What is the actual behavior?
Chinese characters in text fenced code blocks appear with Japanese glyph forms because the current monospace fallback chain appears to end at generic monospace, allowing Japanese CJK fonts to be selected first on Japanese macOS.
Environment
- App: Codex desktop app
- Platform: macOS
- System language/locale: Japanese
- Affected content: assistant response code blocks, especially fenced
textblocks - Codex App version: 26.623.101652