Terminal output truncation/corruption on Windows with Korean text
Resolved 💬 3 comments Opened Dec 19, 2025 by garimto81 Closed Feb 6, 2026
Description
Terminal output is being truncated or corrupted when Claude Code CLI outputs text containing:
- Korean (Hangul) characters
- Unicode box-drawing characters (─, │, ┌, ┐, └, ┘)
- Mixed content with emojis
Environment
- OS: Windows 11
- Terminal: PowerShell
- Claude Code version: Latest
- Locale: Korean (ko_KR)
Symptoms
- Lines are partially cut off (beginning of line missing)
- Entire lines disappear and show as blank
- Text alignment is broken in tables and diagrams
- Issue worsens with Korean text + special characters
Example
Expected output:
┌─────────────────┐
│ 테스트 박스 │
└─────────────────┘
Actual output:
┌─────────────────┐
┘
Steps to Reproduce
- Run Claude Code on Windows with PowerShell
- Request output containing Korean text with ASCII diagrams or tables
- Observe truncated/missing content
Attempted Fixes (No Effect)
- Set
PYTHONIOENCODING=utf-8 - Set
LANG=ko_KR.UTF-8 - Set
COLUMNS=200 - Removed emojis from output
Suspected Cause
Wide character (CJK) width calculation issue in terminal rendering. Korean characters occupy 2 columns but may be calculated as 1.
---
🤖 Generated with Claude Code
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗