[GH-ISSUE #210] Hang when displaying string including "ー" #165

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

Originally created by @tmskst on GitHub (Dec 21, 2018).
Original GitHub issue: https://github.com/rivo/tview/issues/210

  1. "ー" is http://en.glyphwiki.org/wiki/u30fc
  2. I found this problem on f93fbad8f8, Windows 10 + PowerShell
  3. It did not occur on bc39bf8d24
package main

import "github.com/rivo/tview"

func main() {
	text := tview.NewTextView()
	text.SetText("aaaー") // -> Displays nothing. Cannot halt application by Ctrl+C
	//text.SetText("ー") // -> Displays nothing too. But can halt application by Ctrl+C
	//text.SetText("ーaaa") // -> Displays "aaa"
	application := tview.NewApplication()
	application.SetRoot(text, true)
	application.Run()
}
Originally created by @tmskst on GitHub (Dec 21, 2018). Original GitHub issue: https://github.com/rivo/tview/issues/210 1. "ー" is http://en.glyphwiki.org/wiki/u30fc 2. I found this problem on f93fbad8f8, Windows 10 + PowerShell 3. It did not occur on bc39bf8d24 ``` package main import "github.com/rivo/tview" func main() { text := tview.NewTextView() text.SetText("aaaー") // -> Displays nothing. Cannot halt application by Ctrl+C //text.SetText("ー") // -> Displays nothing too. But can halt application by Ctrl+C //text.SetText("ーaaa") // -> Displays "aaa" application := tview.NewApplication() application.SetRoot(text, true) application.Run() } ```
kerem closed this issue 2026-03-04 01:02:32 +03:00
Author
Owner

@rivo commented on GitHub (Dec 25, 2018):

I guess I chose the wrong unicode categories to find combining characters. Anyway, the last commit should fix this.

<!-- gh-comment-id:449865661 --> @rivo commented on GitHub (Dec 25, 2018): I guess I chose the wrong unicode categories to find combining characters. Anyway, the last commit should fix this.
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#165
No description provided.