Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
XFCE4, systemd, utf-8 problems [solved, slim as dm at fault]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
wpettersson
n00b
n00b


Joined: 04 Jun 2014
Posts: 16

PostPosted: Wed Jun 04, 2014 12:54 pm    Post subject: XFCE4, systemd, utf-8 problems [solved, slim as dm at fault] Reply with quote

So up until today I was running XFCE 4.10 (launched via slim if it makes a difference), and I was not running systemd, and utf-8 was working fine in xfce4-terminal. My locale was en_AU.UTF-8

Today I decided to migrate to systemd and most things are working fine (still working on power management but that can come later).

However, if I just start xfce4-terminal after logging in, it seems to not support utf-8 characters nicely. I get multiple question marks instead of a single utf-8 character (been testing with http://www.w3.org/2001/06/utf-8-test/postscript-utf-8.html which displays fine in firefox). For the last two lines I see
Code:
20AC ��� EURO SIGN
2122 ��� TRADE MARK SIGN

when I should see
Code:
20AC € EURO SIGN
2122 ™ TRADE MARK SIGN


I've checked the output of locale (see below) and it seems fine. I wasn't sure on the difference between "en_AU.UTF-8" and "en_AU.utf8" but I have tested both and they give identical results.

However, it gets weird now. If I start aterm (or any other terminal), and then start xfce4-terminal from aterm, then utf8 works just fine. So if I go "aterm -> xfce4-terminal" then utf8 works. But if xfce4-terminal is launched directly from xfce, then utf8 does not work. In both situations, the output of locale/locale -a/locatectl is the same. I'm thoroughly confused on this one.

Code:
$ locale -a
C
en_AU.utf8
en_US
en_US.iso88591
en_US.utf8
POSIX
sv_SE.utf8

$ locale
LANG=en_AU.utf8
LC_CTYPE=en_AU.utf8
LC_NUMERIC="en_AU.utf8"
LC_TIME="en_AU.utf8"
LC_COLLATE="en_AU.utf8"
LC_MONETARY="en_AU.utf8"
LC_MESSAGES="en_AU.utf8"
LC_PAPER="en_AU.utf8"
LC_NAME="en_AU.utf8"
LC_ADDRESS="en_AU.utf8"
LC_TELEPHONE="en_AU.utf8"
LC_MEASUREMENT="en_AU.utf8"
LC_IDENTIFICATION="en_AU.utf8"
LC_ALL=

$ localectl
   System Locale: LANG=en_AU.utf8
       VC Keymap: n/a
      X11 Layout: n/a

$ localectl list-locales
en_AU.utf8
en_US
en_US.iso88591
en_US.utf8
sv_SE.utf8

$ cat /etc/locale.conf
LANG=en_AU.utf8


Last edited by wpettersson on Wed Jun 04, 2014 12:57 pm; edited 1 time in total
Back to top
View user's profile Send private message
wpettersson
n00b
n00b


Joined: 04 Jun 2014
Posts: 16

PostPosted: Wed Jun 04, 2014 12:57 pm    Post subject: Reply with quote

Solved!

The last thing I wrote in the above post was my comment on using Slim as my DM. I decided to try lightdm, and that fixes it. No idea why.

Anyway, solution is to not use slim (for me). I'll edit the post title and what-not.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum