go-runewidth icon indicating copy to clipboard operation
go-runewidth copied to clipboard

Inconsistent behavior under different operating systems

Open Equationzhao opened this issue 1 year ago • 1 comments

dot := '\uF111' // a dot
println(runewidth.RuneWidth(dot))

/*
    Linux(wsl):1 (correct)
    Windows 11:2 (incorrect)
*/

go version: 1.20.4

Equationzhao avatar May 31 '23 09:05 Equationzhao