Bug 458362

Summary: Console applications which use "box" symbols are fsck-ed up
Product: [Fedora] Fedora Reporter: Hans de Goede <hdegoede>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 12CC: ak, belegdol, covex, kmilos, mcepl, mcepl, rstrode, rvokal, sergei.litvinenko
Target Milestone: ---Keywords: Reopened, Triaged
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-11-04 14:57:34 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
patch to fix setfont call from console_init
none
fedora console unicode
none
screenshot from virtualbox showing highlighted chars none

Description Hans de Goede 2008-08-07 19:27:36 UTC
Fully up2date rawhide (last updated 2 days ago), when I start mc or ntsysv or any other app drawing an ascii userinterface using box characters, the box parts are all fsck-ed up.

A simple "setfont" fixes this. I don't know where to lay the blame but in the past I noticed a slight console font change while udev was starting, so I guess udev was calling setfont.

Comment 1 Harald Hoyer 2008-08-08 06:41:32 UTC
# rpm -qf /etc/udev/rules.d/10-console.rules
initscripts-8.76.2-1.x86_64

Comment 2 Bill Nottingham 2008-08-21 04:20:55 UTC
When did this start? If you run /lib/udev/console_init tty0, does it fix it?

Comment 3 Hans de Goede 2008-08-21 05:36:20 UTC
(In reply to comment #2)
> When did this start?

Around when plymouth started showing up in rawhide, iow some time ago.

> If you run /lib/udev/console_init tty0, does it fix it?

No

p.s.

With the latest rawhide, my console colors are fscked up too know, the plymouth ascii busy animation colors stay in effect after the system has booted, for example the [ OK ] for starting a service has the OK in plymouth light blue now.

And /lib/udev/console_init tty0 doesn't fix this either.

Comment 4 Alex Kanavin 2008-10-04 10:23:02 UTC
This might be related - I'm running Fedora 10 Beta with russian locale, and russian characters show up as garbage.

Running /sbin/setsysfont does fix this, /lib/udev/console_init tty0 (or tty1) does not.

Comment 5 Alex Kanavin 2008-10-04 12:38:08 UTC
Created attachment 319458 [details]
patch to fix setfont call from console_init

Ok, I've found the problem - if UNIMAP is not set, console_init defaults to calling setfont with '-u none' which overrides the unicode map provided in the font itself. Attached patch fixes this.

Comment 7 Bill Nottingham 2008-10-14 00:56:01 UTC
*** Bug 450690 has been marked as a duplicate of this bug. ***

Comment 8 Bill Nottingham 2008-10-14 01:14:07 UTC
*** Bug 466611 has been marked as a duplicate of this bug. ***

Comment 9 Adam Pribyl 2008-10-14 08:23:15 UTC
This should be then "backported" also to F9 right?

Comment 10 Bill Nottingham 2008-10-14 20:31:25 UTC
It's been backported to the F-9 git branch, there will probably be an update at some point.

Comment 11 Fedora Update System 2008-10-14 21:23:18 UTC
initscripts-8.76.4-1 has been submitted as an update for Fedora 9.
http://admin.fedoraproject.org/updates/initscripts-8.76.4-1

Comment 12 Miloš Komarčević 2008-10-17 23:51:49 UTC
This didn't quite fix it for me (Serbian Cyrillic sr_RS.utf8 system locale).

If i switch from plymouth using Esc straigh away, the "Starting" in "Starting udev" appears garbled, and the other strings show up fine.

If I switch later (i.e. halfway) in the boot process, all the messages still appear garbled.

Comment 13 Adam Pribyl 2008-10-18 20:05:48 UTC
Neither for me. F10 console and starting/stopping messages are not showing correct characters. I'll attach screenshot to demonstrate this.

Comment 14 Adam Pribyl 2008-10-18 20:17:49 UTC
Created attachment 320768 [details]
fedora console unicode

See steps - after login, after setfont, after unicode_start and their influence on characters. The correct ouput is after unicode_start.

Comment 15 Alex Kanavin 2008-10-21 10:13:40 UTC
I'm using russian cyrillic ru_RU.UTF8 locale, and things are fine here with initscripts 8.84 - cyrillic characters in console and during boot show up fine, regardless of when I press Esc. Midnight Commander also looks fine. The only exception is "Starting udev" message, I could live with that. However, I'm a special case - Nvidia on a powerpc machine, so plymouth is using non-graphical mode.

Adam, could you attach your /etc/sysconfig/i18n and cestina.txt files? I could try to reproduce the problem then.

Milos, can I have your i18n file as well?

Comment 16 Miloš Komarčević 2008-10-21 23:12:16 UTC
Alex, I have tried with the nomodeset kernel boot option and they show up fine then, just like for you.

$ cat /etc/sysconfig/i18n
LANG="sr_RS.utf8"
SYSFONT="latarcyrheb-sun16"

Btw, do your cyrillic characters appear highlighted during init? Pretty sure this wasn't case in F7 or before...

Comment 17 Alex Kanavin 2008-10-22 06:02:07 UTC
Yes, if plymouth is in use, then everything ends up highlighted in console. I think this should be filed as a plymouth bug though. I can't comment on the graphical plymouth -> garbage from non-latin characters, as I can't reproduce it.

Comment 18 Adam Pribyl 2008-10-22 07:10:14 UTC
Created attachment 321122 [details]
screenshot from virtualbox showing highlighted chars

LANG="cs_CZ.UTF-8"
SYSFONT="latarcyrheb-sun16"

Attached: Highlighted characters I had in F9 already - not related to plymouth, also this happens at all consoles.

The file cestina.txt is attached to my bug marked as duplicate:
https://bugzilla.redhat.com/attachment.cgi?id=309052

Comment 19 Miloš Komarčević 2008-10-22 08:33:03 UTC
Yep, highlighted non-ascii chars in init appeared around F7 or F8 IIRC, nothing to do with plymouth.

Comment 20 Alex Kanavin 2008-10-22 08:37:07 UTC
Adam, I just tried booting with your i18n, and in both text plymouth and no plymouth modes the file is displayed fine. So I think the problem is specifically with graphical plymouth, and I can't reproduce that - nvidia card here. The highlighted characters issue doesn't occur either - might be because of different framebuffer drivers.

Bill, console_init (and unicode_start) do some magic to set up UTF-8 consoles:
http://git.fedorahosted.org/git/?p=initscripts.git;a=blob;f=src/console_init.c;h=a3d9379160e382606268b7c67bf05d667e7b53e2;hb=251c0bfcfdb53f2c11fcafa9381d4322a1973fc8#l120

Seems like it's not working if graphical plymouth is running. Should it be moved to initrd, just before plymouth is started?

Comment 21 Bill Nottingham 2008-10-22 13:52:37 UTC
CC'ing Ray - what exactly does plymouth do with the tty when it starts?

Comment 22 Adam Pribyl 2008-10-22 14:27:43 UTC
I have only nvidia, intel and virtualbox - all of them use text based plymouth and all of them show this behaviour. Then I would really like to know where is the difference. How did you done the installation of the system? I did it in english, then I added czech support.

Comment 23 Alex Kanavin 2008-10-22 14:38:47 UTC
Are we discussing the garbage characters, unwanted character highlighting or both now? Comment 16 seems to confirm that the first is a graphical plymouth issue.

I did the installation in russian. No idea how that could make a difference though.

Comment 24 Adam Pribyl 2008-10-22 14:58:47 UTC
I experience both problems at once. 

I found however one interesting thing - booting into init 3 (without plymouth and with nomodeset), I have only highlighted characters, but letters are OK. Booting into init 5 and switching to console letters are changed to garbage.

This is something I already noticed earlier - swichting to X and back to tty causes the settings of tty to be reset.

Comment 25 Fedora Update System 2008-10-24 23:48:35 UTC
initscripts-8.76.4-1 has been pushed to the Fedora 9 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 26 Bill Nottingham 2008-11-03 21:48:24 UTC
Alex/Adam/Milos - please open a separate bug for interactions with plymouth. I'm trying to reproduce here and not having a lot of luck.

Comment 27 Bill Nottingham 2008-11-03 21:58:31 UTC
Just as an example, using cs_CZ.UTF-8:

- I can't reproduce highlighted characters
- I can't reproduce the messages being in the wrong encoding/characters when switched to details mode after udev starts.

Comment 28 Matěj Cepl 2008-11-04 22:16:46 UTC
I have cs_CZ.UTF-8 myself -- in later upgrades of Rawhide this problem has been fixed. Please, anybody who is affected by this issue, please, upgrade and reopen if it has not been fixed yet.

Comment 29 Miloš Komarčević 2008-11-04 23:41:05 UTC
I'm still seeing this with sr_RS.UTF-8 (and sr_RS.utf8) if I press Esc more than about 2/3 in during Plymouth startup. Running latest rawhide.

Comment 30 Bill Nottingham 2008-11-05 02:04:29 UTC
Milos - which 'this' - characters in wrong encoding, or highlighted characters?

Comment 31 Miloš Komarčević 2008-11-05 08:37:31 UTC
I guess encoding, because I just get squares instead of non-ASCII letters in plymouth if I switch to details late. This remains the case in virtual consoles then.

With nomodeset I do get correct Curillic letters even if I switch to details late, but non-ASCII is highlighted.

Comment 32 Bill Nottingham 2008-11-05 15:02:03 UTC
Is your /etc/sysconfig/i18n *just* LANG=sr_RS.UTF-8, or do you have additional font-related customizations I should be testing with?

Comment 33 Miloš Komarčević 2008-11-05 19:38:47 UTC
My /etc/sysconfig/i18n is

LANG="sr_RS.UTF-8"
SYSFONT="latarcyrheb-sun16"

as created by the F10 Live beta installer, with the system updated to latest rawhide. Are you saying that SYSFONT shouldn't be there?

Comment 34 Bill Nottingham 2008-11-05 19:53:21 UTC
No, just making sure you don't have SYSFONTACM or UNIMAP set (which, if you're using UTF-8, you shouldn't, but just making sure...)

Comment 35 Bill Nottingham 2008-11-05 20:51:00 UTC
Milos: if you apply http://notting.fedorapeople.org/0001-Do-full-console-initialization-in-the-initrd-not-ju.patch and rebuild your initrd, does it fix the character set issues? 

(Note: this patch may not go in as is, as it's a rather large and somewhat gross hammer.)

Comment 36 Miloš Komarčević 2008-11-06 00:35:31 UTC
Bill, thanks for the patch, it applied ok.

Unfortunately, no difference here with the newly generated initrd - still get mostly ok output (minus the "Starting udev") if I switch to details at the start of plymouth, or the squares if I switch late.

Comment 37 Bug Zapper 2008-11-26 02:42:07 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 10 development cycle.
Changing version to '10'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 38 Bug Zapper 2009-11-18 08:15:11 UTC
This message is a reminder that Fedora 10 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 10.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '10'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 10's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 10 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 39 Miloš Komarčević 2009-11-18 23:19:03 UTC
Still getting the same behavior on F12 - boxes if I switch to booting details after udev, mostly ok ("Starting udev" exception) if I switch before udev starting.

Comment 40 Bill Nottingham 2009-11-19 01:12:39 UTC
What sort of hard

Comment 41 Bill Nottingham 2009-11-19 16:39:02 UTC
Meant to say 'what sort of hardware?' (video-wise)

Comment 42 Miloš Komarčević 2009-11-19 22:59:31 UTC
This is on a ThinkPad T60p (2613-H5U) with

01:00.0 VGA compatible controller: ATI Technologies Inc M56GL [Mobility FireGL V5200]

One difference with F12 I just noticed is that virtual consoles are ok once the system is up, so the problem is only present during init...

Comment 43 Julian Sikorski 2010-01-03 20:27:31 UTC
For highlighted characters, please have a look at bug 486042, a similar issue with Polish locale is described there.

Comment 44 Bug Zapper 2010-11-04 11:49:01 UTC
This message is a reminder that Fedora 12 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 12.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '12'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 12's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 12 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 45 Hans de Goede 2010-11-04 14:57:34 UTC
This is no longer happening in F-14, closing.