Bug 115941 - displays using wrong encoding
displays using wrong encoding
Product: Fedora
Classification: Fedora
Component: initscripts (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Bill Nottingham
Brock Organ
Depends On:
  Show dependency treegraph
Reported: 2004-02-17 05:34 EST by Dimitri Papadopoulos
Modified: 2014-03-16 22:42 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-09-30 17:10:57 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Dimitri Papadopoulos 2004-02-17 05:34:51 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.6) Gecko/20040113

Description of problem:
Fedora uses UTF-8 locales by default. In my case it's a French locale:
	# cat /etc/sysconfig/i18n

In some cases the init scripts seem to have problems with the encoding
of their output. In short I see uncorrectly some encoded messages on
the console while the services are being shut down:
	Arrêt de NFS statd :           [OK]
	Arrêt de portmapper :           [OK]

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Use an UTF-8 default locale with non-ASCII characters in message
strings (a locale such as fr_FR.UTF-8 will do).
2. Boot into runlevel 5.
3. Ctrl+Alt+F1
4. Ctrl+Alt+Del
5. Observe the messages from the services being shut down.

You won't be able to reproduce the problem if you shut down the system
the usual way:
1. Use an UTF-8 default locale with non-ASCII characters in message
strings (a locale such as fr_FR.UTF-8 will do).
2. Boot into runlevel 5.
3. Click on "Shutdown" or "Reboot"

It could be that a different locale (UTF-8 vs. Latin1) is used in
either cases, and that some scripts are capable of both Latin1 and
UTF-8, while some others are not?

Actual Results:
	Arrêt de NFS statd :           [OK]
	Arrêt de portmapper :           [OK]

Expected Results:
	Arrêt de NFS statd :            [OK]
	Arrêt de portmapper :           [OK]
Comment 1 Bill Nottingham 2004-02-17 10:59:34 EST

Will fix in CVS.
Comment 2 Bill Nottingham 2004-02-17 11:04:31 EST
Hm, this works for me with LANG=fr_FR.UTF-8.  What sort of terminal
are you on?
Comment 3 Miloslav Trmac 2004-02-17 11:07:31 EST
If this is the old problem, it occurs only on consoles
not set up to UTF-8 (i.e. nobody logged in), and
only as long as no initscript includes /etc/profile.d/lang.sh;
some initscripts (kudzu, portmap) include that file, which
sets up the console to UTF-8 and the following messages
look fine.
Comment 4 Dimitri Papadopoulos 2004-02-18 03:23:22 EST
This is a Dell Precision 530 workstation.

And indeed there's nobody logged in when I shut down the machine, and
this seems to happen with initscripts that don't include
/etc/profile.d/lang.sh (the vast majority of them):

$ fgrep lang.sh /etc/init.d/*
/etc/init.d/kudzu:[ -f /etc/profile.d/lang.sh ] && .
/etc/init.d/portmap:[ -f /etc/profile.d/lang.sh ] && .
Comment 5 Dimitri Papadopoulos 2004-02-18 03:27:51 EST
Sorry, this is actually a Dell Latitude CPx laptop.
Comment 6 Bill Nottingham 2005-09-30 17:10:57 EDT
This was a kernel bug with initialization of the console... it *should* be fixed
on FC4 + kernel 2.6.13.

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