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

Zero width space characters should not show up as visible spaces #11850

Closed
pragma- opened this issue Dec 1, 2021 · 3 comments
Closed

Zero width space characters should not show up as visible spaces #11850

pragma- opened this issue Dec 1, 2021 · 3 comments
Labels
Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.

Comments

@pragma-
Copy link

pragma- commented Dec 1, 2021

Windows Terminal version

1.1129.1.0

Windows build number

10.0.19043

Other Software

Any software

Steps to reproduce

Any console application printing a zero-width space (ZWSP, U+200B) intends for them to not be visible.

Expected Behavior

Text with ZWSP characters invisible, having no width.

Actual Behavior

Text with visible space characters.

@ghost ghost added Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Dec 1, 2021
@zadjii-msft
Copy link
Member

Thanks for the suggestion! This is actually already being tracked by another issue on our repo - please refer to #1472 for more discussion.

/dup #1472
/dup #8000

@ghost
Copy link

ghost commented Dec 1, 2021

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost ghost closed this as completed Dec 1, 2021
@ghost ghost added Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. and removed Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Dec 1, 2021
@juliannoble
Copy link

Testing with latest canary.

For ZWSP (\U200B) there appears to be no way to have it non-printing while using the 'Grapheme clusters' mode.
You have to use wcswidth to fix the behaviour this issue describes and then forgo grapheme clusters.

If grapheme clusters is intended to be (as described) the 'modern' way - then this bug would still seem to be present.

It's unclear to me how

/dup #1472
/dup #8000

address this specific issue.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.
Projects
None yet
Development

No branches or pull requests

3 participants