[GH-ISSUE #653] running tview with LANG=zh_CN.UTF-8 breaks rendering #478

Closed
opened 2026-03-04 01:05:21 +03:00 by kerem · 1 comment
Owner

Originally created by @SoMuchForSubtlety on GitHub (Sep 23, 2021).
Original GitHub issue: https://github.com/rivo/tview/issues/653

Can be reproduced with the demo programs, for example "button":

$ LANG=zh_CN.UTF-8 go run .

cn

$ echo $LANG
en_GB.UTF-8
$ go run .

no cn

Downstream report: https://github.com/SoMuchForSubtlety/f1viewer/issues/179

Originally created by @SoMuchForSubtlety on GitHub (Sep 23, 2021). Original GitHub issue: https://github.com/rivo/tview/issues/653 Can be reproduced with the demo programs, for example "button": ```bash $ LANG=zh_CN.UTF-8 go run . ``` ![cn](https://user-images.githubusercontent.com/15961647/134520881-3b72c187-543c-4225-ba40-eb12d51dea42.png) ```bash $ echo $LANG en_GB.UTF-8 $ go run . ``` ![no cn](https://user-images.githubusercontent.com/15961647/134520887-a5575552-dae8-4aff-a24e-6daea9eecd3f.png) Downstream report: https://github.com/SoMuchForSubtlety/f1viewer/issues/179
kerem closed this issue 2026-03-04 01:05:21 +03:00
Author
Owner

@SoMuchForSubtlety commented on GitHub (Sep 23, 2021):

dupe of #96

workaround is to set the env var RUNEWIDTH_EASTASIAN=true https://github.com/mattn/go-runewidth/issues/14

<!-- gh-comment-id:925945655 --> @SoMuchForSubtlety commented on GitHub (Sep 23, 2021): dupe of #96 workaround is to set the env var `RUNEWIDTH_EASTASIAN=true` https://github.com/mattn/go-runewidth/issues/14
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tview#478
No description provided.