Bug 924311 - Encoding under tty broken
Summary: Encoding under tty broken
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 19
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: systemd-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-03-21 14:28 UTC by Lukáš Zachar
Modified: 2013-04-27 03:12 UTC (History)
17 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-04-27 03:12:22 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
screenshot (11.31 KB, image/png)
2013-03-21 14:28 UTC, Lukáš Zachar
no flags Details
env (1.87 KB, text/plain)
2013-03-21 16:22 UTC, Lukáš Zachar
no flags Details

Description Lukáš Zachar 2013-03-21 14:28:16 UTC
Created attachment 713884 [details]
screenshot

Description of problem:

pstree under tty produces broken output. However if it is piped to head the output is correct.
Also mc output is corrupted.

Please see the screen shot. 

Version-Release number of selected component (if applicable):
coreutils-8.21-8.fc19.x86_64

How reproducible:
aways

Steps to Reproduce:
1. mc
2. pstree
  
Actual results:
broken screen layout 

Expected results:
nice layout as before

Additional info:

Comment 1 Ondrej Vasik 2013-03-21 14:36:23 UTC
Ok, thanks for report - and why is that reported against coreutils? I don't understand, can you please be more clear?

Comment 2 Lukáš Zachar 2013-03-21 14:40:16 UTC
Because of the rpm -qf `which tty` .
Please move it to the appropriate component as I have missed it. Sorry for the trouble.

Comment 3 Lukáš Zachar 2013-03-21 15:17:50 UTC
The easiest way to reproduce the problem is to boot the Test day's image
http://fedorapeople.org/groups/qa/20130320-gnome/20130320-gnome-x86_64.iso 
then switch into tty, login and run pstree or mc.

Comment 4 Ondrej Vasik 2013-03-21 15:48:25 UTC
No idea what's correct - it might have something to do with agetty/systemd ... probably the main reason there is the UTF-8 character in release name which seems to create the initial mess. I don't know. To have wider audience, moving it to distribution - as the default encoding should probably be Unicode.

Comment 5 Michal Sekletar 2013-03-21 15:56:02 UTC
I would say that pstree utility is not able to correctly recognize that terminal which is connected to doesn't support utf-8 wide chars. Can you provide output of env command? In particular I am interested in variables LANG and LC_CTYPE.

I am not sure what is the cause here, although I would say that it one of the following packages, bash, agetty, systemd or glibc (function setlocale(), nl_langinfo()).

Comment 6 Lukáš Zachar 2013-03-21 16:22:38 UTC
Created attachment 713988 [details]
env

output of env

LANG=en_US.UTF-8
LC_CTYPE not defined

Comment 7 Fedora Update System 2013-04-22 07:13:09 UTC
systemd-202-2.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/FEDORA-2013-6070/systemd-202-2.fc19

Comment 8 Fedora Update System 2013-04-24 13:09:05 UTC
systemd-202-3.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/systemd-202-3.fc19

Comment 9 Fedora Update System 2013-04-24 16:33:58 UTC
Package systemd-202-3.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing systemd-202-3.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-6488/systemd-202-3.fc19
then log in and leave karma (feedback).

Comment 10 Fedora Update System 2013-04-27 03:12:25 UTC
systemd-202-3.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.