UTF8 char U+26A1 is displayed as a 2-width character

Bug #1634889 reported by Thomas
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Sakura
Invalid
Undecided
Unassigned

Bug Description

I have noticed that Sakura is having problems displaying U+26A1 - ⚡.
It is too wide (looks like 2 characters) and so it messes up my prompt.

I am using Sakura 3.3.4, zsh5.2 and latest and greatest oh-my-zsh (OMZ) with the Agnoster theme
(https://gist.github.com/agnoster/3712874)

The second-to-last line is a root-prompt and there are problem with that ⚡. If the prompt is empty the curser is kinda just after the > powerline sign, with no space in between.
After I typed something and want to auto-complete all shifts right and messes up what I typed, as it looses the most right character.

I submitted a bug report to OMZ here: https://github.com/robbyrussell/oh-my-zsh/issues/5546#issuecomment-254788705 but it appears to me this is more a terminal issue than an issue with zsh/omz.

Revision history for this message
David Gómez (dabisu) wrote :

With bash it doesn't show up any of the problems you mention, so i'm guessing is a problem related to zsh and/or OMZ.

Revision history for this message
Thomas (modul0x90) wrote :

If I start a bash session inside my regular Sakura window (ie. no powerline, no zsh and no OMZ) I won't have the pretty prompt anymore,
but inserting ⚡ is showing the same problem, it is displayed as a 2 character wide character.

I run some check and the system is has stored it as a 1 character wide, other UTF8 are also 1 character wide, only this one it seems is 2 character wide.

It *looks* to me like a problem with Sakura. I understand it necessarily doesn't have to be, it could be a character set issue, font issue, X issue ... whatnot. If you point me in the right direction I am more than happy to raise this issue elsewhere.

Revision history for this message
Egmont Koblinger (egmont-gmail) wrote :
Revision history for this message
David Gómez (dabisu) wrote :

Thanks for the info Egmont

Revision history for this message
Beelze (beelzebubbie-logs) wrote :

zsh-5.2, Schutzstaffel (⚡⚡) displayed correctly. Current font is Consolas Regular 10.

Revision history for this message
David Gómez (dabisu) wrote :

I'll mark this bug as closed. Please open it again if you can reproduce it with a system with an installed glibc version >= 2.26.

Changed in sakura:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.