Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent behavior under different operating systems #70

Open
Equationzhao opened this issue May 31, 2023 · 1 comment
Open

Inconsistent behavior under different operating systems #70

Equationzhao opened this issue May 31, 2023 · 1 comment

Comments

@Equationzhao
Copy link

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

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

go version: 1.20.4

@arp242
Copy link

arp242 commented Apr 25, 2024

U+F111 is private use; it's impossible for this library to know the correct width.

IsEastAsian() probably returns something different on your systems(?) That depends on your locale.

I don't know if Unicode says something about the width of private use characters. I think not? Probably not a bug here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants