You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Links/URLs get offset when certain unicode characters are printed #8709
Area-RenderingText rendering, emoji, complex glyph & font-fallback issuesArea-TerminalControlIssues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.)Issue-BugIt either shouldn't be doing this or needs an investigation.Priority-2A description (P2)Product-TerminalThe new Windows Terminal.Resolution-Fix-CommittedFix is checked in, but it might be 3-4 weeks until a release.
Windows build number: Windows 10 version 2004 (10.0.19041.0)
Windows Terminal version: Preview 1.5.3242.0
Steps to reproduce
Print certain unicode characters like this one: 𝓐
Expected behavior
Links/URLs should be valid.
Actual behavior
Links/URLs get offset and break with the presence of certain unicode characters.
For example, if the following text is printed:
𝓐𝓐𝓐
https://microsoft.com/
The hoverable link, clickable link and opened link is ps://microsoft.com/
If those unicode characters are not printed (if you scroll for example), the links work again.
2021-01-05_22-44-13_kWeoQrwJie.mp4
Note that the emoji doesn't cause the issue.
The code used in the video is:
It looks a lot like it, going the other way from the screen of that issue.
Those 𝓐 characters are really messing it up, huh.
Yeah, I found the problem when printing display usernames from an api. Not only the 𝓐 character, but also the rest of the alphabet written like that. Maybe there is more characters than that, I didn't try to find them all.
Clever quick fix -- thanks Comzyh (@comzyh)! I'm rolling this into the 1.11 and 1.12 servicing releases we're putting out to make Terminal more robust over the holidays. :)
Dustin L. Howett (@DHowett) I think this regressed recently, because I was able to reproduce the issue until I got the update from 3 days ago. I'm assuming it was fixed by this:
Auto-detected URLs and search results are no longer pushed around by wide characters (oops) (#16787)
Dustin L. Howett (@DHowett) Haha I knew that, but what can I say, I still have the issue 😅 thought replying here was better than opening a duplicate lol
James Holderness (@j4james) I think you're right, latest stable is v1.19.10821.0 and I have v1.19.10573.0. But nothing happens when I check for updates in Terminal and there's no "Update" in the Store page.
If I install the latest release via the .msixbundle from here, will that mess up the existing link with MS Store updates? Or should I just wait until it rolls out to my device?
Area-RenderingText rendering, emoji, complex glyph & font-fallback issuesArea-TerminalControlIssues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.)Issue-BugIt either shouldn't be doing this or needs an investigation.Priority-2A description (P2)Product-TerminalThe new Windows Terminal.Resolution-Fix-CommittedFix is checked in, but it might be 3-4 weeks until a release.
Activity
zadjii-msft commentedon Jan 6, 2021
Oh weird. I would have thought this was a dupe of #8121, but that one was fixed in 1.5.3142, so this must be it's own variation on the subject.
Those 𝓐 characters are really messing it up, huh.
Entrivax commentedon Jan 6, 2021
It looks a lot like it, going the other way from the screen of that issue.
Yeah, I found the problem when printing display usernames from an api. Not only the
𝓐character, but also the rest of the alphabet written like that. Maybe there is more characters than that, I didn't try to find them all.skyline75489 commentedon Jan 9, 2021
The 𝓐 is considered as two wide chars because of #8124. Another place we might want to use a comprehensive Unicode width estimator .
zed76r commentedon May 10, 2021
1 remaining item
Parse UTF-16 surrogates pairs for calculating pattern's position (#11915
Parse UTF-16 surrogates pairs for calculating pattern's position (#11915
Parse UTF-16 surrogates pairs for calculating pattern's position (#11915
DHowett commentedon Dec 14, 2021
Clever quick fix -- thanks Comzyh (@comzyh)! I'm rolling this into the 1.11 and 1.12 servicing releases we're putting out to make Terminal more robust over the holidays. :)
CerebralDatabank commentedon Mar 28, 2024
I'm still having this issue with 5-digit Nerd Font Unicode characters on Windows 11…
DHowett commentedon Mar 28, 2024
Which version of Terminal are you using? This issue was closed two years ago 🙂
j4james commentedon Mar 28, 2024
Dustin L. Howett (@DHowett) I think this regressed recently, because I was able to reproduce the issue until I got the update from 3 days ago. I'm assuming it was fixed by this:
Gopal Othayoth (@CerebralDatabank) Bottom line is you probably just need to get the very latest update.
CerebralDatabank commentedon Mar 28, 2024
Dustin L. Howett (@DHowett) Haha I knew that, but what can I say, I still have the issue 😅 thought replying here was better than opening a duplicate lol
James Holderness (@j4james) I think you're right, latest stable is
v1.19.10821.0and I havev1.19.10573.0. But nothing happens when I check for updates in Terminal and there's no "Update" in the Store page.If I install the latest release via the
.msixbundlefrom here, will that mess up the existing link with MS Store updates? Or should I just wait until it rolls out to my device?DHowett commentedon Mar 28, 2024
you know what, that's totally fair! hah!
Nope, you can install the
msixbundlefrom here and it will still hook up to the store for future updates!