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

format including extra space when alternate currencies/special characters (¥/€) are present #891

Open
photosheep opened this issue Aug 19, 2024 · 4 comments

Comments

@photosheep
Copy link

Using the following snippet

let A0 = 100
fmt A0 "¥0.00"
let A1 = 200
fmt A1 "$0.00"
let A2 = 300
fmt A2 "🐑0.00"
goto A2

Spaces appear after the items formatted with $. Most special characters seem to break the spacing.
The input bar also returns the following. A2 (🐑0.00) 20[300] This seems to be an artifact of the strange spacing as well.

@andmarti1424
Copy link
Owner

@photosheep I am not able to see the first char on A2. what is it?

@photosheep
Copy link
Author

An emoji. Some special characters (€ 🐑 √) seem to indent the right side worse than others (¥ ¡ ×), but they all seem to offset the entire line to the left by a space or two.

@andmarti1424
Copy link
Owner

I believe this has to do with wcslen and how it interprets and processes each wide character.. I cannot do much regarding this I am afraid.

@andmarti1424
Copy link
Owner

BTW, the special characters not shown are just because ncurses does not support them. Again, nothing much I can do about that either.

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