Bug 382824

Summary: UTF-8 characters mangled when using tmux
Product: [Applications] konsole Reporter: github
Component: fontAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED NOT A BUG    
Severity: normal CC: dan, egmont
Priority: NOR    
Version: 17.04.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description github 2017-07-27 19:54:02 UTC
Was working fine before `konsole 17.04.3` and now fonts are all mangled:

printf '\u2b06\n'
���

Not sure if that will render correctly in the bug tracker but I get three white question marks in black hexagons instead of the appropriate character.

Now I have to right click the terminal and click "Set Encoding" and then choose UTF-8 every time I start konsole!

tmux + any other terminal is fine.
Comment 1 github 2017-07-27 19:56:20 UTC
My locale:

% locale
LANG=en_GB.UTF-8
Comment 2 Egmont Koblinger 2017-07-31 20:29:38 UTC
Could it be perhaps that konsole selects iso8859-1 on a certain escape sequence (e.g. soft reset), kind of like (but opposite to) https://bugzilla.gnome.org/show_bug.cgi?id=777747 and the xfce-terminal bug linked from there?
Comment 3 Christoph Feck 2017-08-01 22:10:46 UTC
There are no changes in Konsole between versions 17.04.0 and 17.04.3 that could affect this. Please check if other changes in your system could cause this.
Comment 4 Dan Haworth 2017-08-02 09:33:12 UTC
I too am seeing this exact issue, again on konsole 17.04.03 running on Arch linux. So far no obvious solution (except for forcing encoding) however I'll start rolling back packages to see what caused it.
Comment 5 github 2017-08-02 09:35:32 UTC
(In reply to Dan Haworth from comment #4)
> I too am seeing this exact issue, again on konsole 17.04.03 running on Arch
> linux. So far no obvious solution (except for forcing encoding) however I'll
> start rolling back packages to see what caused it.

Dan I'm also using archlinux, I suspect they have introduce an issue with their locale handling. Can you run this command for me:

LC_ALL= LANG=en_US node -e 'console.log((123456).toLocaleString())'

When I run that I see `123456` when I should be seeing `123,456` and I believe this bug came along at the same this konsole behaviour started.
Comment 6 Dan Haworth 2017-08-02 09:40:58 UTC
Yep, I'm seeing exactly the same too.. Might be worth popping this onto the arch mailing list actually as it seems to be arch specific. 

I'll do a little further investigation later when I don't have a failed NAS shelf to deal with ^.^
Comment 7 github 2017-08-02 09:44:36 UTC
Okay I believe this is the true cause of our issues: https://github.com/systemd/systemd/issues/6407

Thanks for your help and feedback everybody.