LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-05-2016, 08:19 PM   #1
yenn
Member
 
Registered: Jan 2011
Location: Czech Republic
Distribution: Slackware, Gentoo, FreeBSD
Posts: 176

Rep: Reputation: 28
Broken characters in X with UTF-8 locale after 20161031 current update


After recent update in current (20161031) characters in X11 terminals became garbled when UTF-8 locale is set. It's also render console editors (eg. vim) barely usable, because you can't tell what is actually displayed and what not.

I use cs_CZ.utf8 locale and everything worked as expected before this update.

It is similar situation as this https://www.linuxquestions.org/quest...7/#post5118471

With non-utf8 locale everything works fine:
Code:
$ echo $LANG
en_US
$ tree      
.
|-- bar
|-- baz
|   |-- 01
|   |-- 02
|   `-- 03
`-- foo

1 directory, 5 files
And here is UTF8 locale output

Code:
$ LANG=cs_CZ.utf8 tree
.
 bar
 baz
**  01
**  02
**  03
 foo

1 directory, 5 files
$ LANG=en_US.utf8 tree
.
 bar
 baz
**  01
**  02
**  03
 foo

1 directory, 5 files
At first I though that I have something wrong in my own account, but same thing happens to newly created user. I even tried fresh current install and problem still occurs.

Since default Slackware LANG is en_US.utf8, I consider this as regression for non-US users.

What could I do to fix it, apart from using non-utf8 locale?
 
Old 11-05-2016, 09:34 PM   #2
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 5,669

Rep: Reputation: 2216Reputation: 2216Reputation: 2216Reputation: 2216Reputation: 2216Reputation: 2216Reputation: 2216Reputation: 2216Reputation: 2216Reputation: 2216Reputation: 2216
Which terminal are you using? I can replicate this in rxvt (which is not UTF-8 aware), but not in xterm, xfce4-terminal or konsole.
Do you have an entry 'export LANG=cs_CZ.UTF-8' in /etc/profile.d/lang.sh, and
an entry 'setenv LANG cs_CZ.UTF-8' in /etc/profile.d/lang.csh ?
 
Old 11-06-2016, 05:20 AM   #3
GazL
LQ Veteran
 
Registered: May 2008
Posts: 5,963

Rep: Reputation: 3954Reputation: 3954Reputation: 3954Reputation: 3954Reputation: 3954Reputation: 3954Reputation: 3954Reputation: 3954Reputation: 3954Reputation: 3954Reputation: 3954
I tried it here with xterm and got this.
Code:
test@ws1:~$ locale -a | grep cs_CZ
cs_CZ
cs_CZ.utf8
test@ws1:~$ LANG=cs_CZ.utf8 xterm
Warning: locale not supported by Xlib, locale set to C
Something very odd going on with the locale.
 
Old 11-06-2016, 06:27 AM   #4
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 5,669

Rep: Reputation: 2216Reputation: 2216Reputation: 2216Reputation: 2216Reputation: 2216Reputation: 2216Reputation: 2216Reputation: 2216Reputation: 2216Reputation: 2216Reputation: 2216
Ahh - Thanks GazL. I see the same thing.
A bug has been reported. https://bugs.freedesktop.org/show_bug.cgi?id=98219
 
2 members found this post helpful.
Old 11-06-2016, 04:25 PM   #5
yenn
Member
 
Registered: Jan 2011
Location: Czech Republic
Distribution: Slackware, Gentoo, FreeBSD
Posts: 176

Original Poster
Rep: Reputation: 28
Quote:
Originally Posted by allend View Post
I can confirm, that I see the same "local not supported" error, alongside other errors ("Could not create FontSet..."). Thanks for finding the bug report
Hopefully Pat will prepare updated package soon.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] UTF-8, not utf-8 or utf8 in locale setting to have SCIM working? Didier Spaier Slackware 8 10-16-2015 01:56 AM
Latest update to -Current has broken X - again! BobNutfield Slackware 18 02-07-2011 09:34 PM
How to input non-utf characters from utf-8 linux enviroment? jadas Linux - General 6 02-07-2009 03:20 PM
locale utf iso Xris718 Linux - General 0 01-13-2005 09:22 AM
X11 / UTF-8 locale seems missing 'fr_FR.UTF-8' chrsitophermann Debian 11 07-17-2004 02:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration