Bug 161075 - init scripts don't take into account current locale, only default system locale
init scripts don't take into account current locale, only default system locale
Status: CLOSED WONTFIX
Product: Fedora
Classification: Fedora
Component: initscripts (Show other bugs)
4
All Linux
medium Severity low
: ---
: ---
Assigned To: Bill Nottingham
Brock Organ
:
: 161062 161063 161064 161065 161066 161067 161069 161072 (view as bug list)
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-06-20 09:39 EDT by Dimitri Papadopoulos
Modified: 2014-03-16 22:54 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-06-20 12:48:46 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Dimitri Papadopoulos 2005-06-20 09:39:07 EDT
Description of problem:
The init scripts use the system default locale instead of the current locale.
This happens whether they include /etc/profile.d/lang.sh or not. The result is
that although I set LANG to see English output for debugging purposes, the
output is still in French, the default system locale:

# cat /ets/sysconfig/i18n
LANG="fr_FR.UTF-8"
SYSFONT="latarcyrheb-sun16"
SUPPORTED="en_US.UTF-8:en_US:en:fr_FR.UTF-8:fr_FR:fr:de_DE.UTF-8:de_DE:de:el_GR.UTF-8:el_GR:el:ko_KR.UTF-8:ko_KR:ko"
# 
# /etc/init.d/portmap status
portmap (pid 1785) en cours d'exécution...
# 

I think these scripts should honor the current locale because they're sometimes
run by the administrator for debugging purposes, not only at system startup.


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


How reproducible:
Every time.


Steps to Reproduce:
1. Set current locale to be different from the system default one.
2. Run an init script.


Actual results:
	# export LANG=C
	# /etc/init.d/ypbind status
	ypbind est arrêté
	# 


Expected results:
	# export LANG=C
	# /etc/init.d/ypbind status
	ypbind is stopped
	#
Comment 1 Miloslav Trmač 2005-06-20 10:15:00 EDT
*** Bug 161072 has been marked as a duplicate of this bug. ***
Comment 2 Miloslav Trmač 2005-06-20 10:15:08 EDT
*** Bug 161062 has been marked as a duplicate of this bug. ***
Comment 3 Miloslav Trmač 2005-06-20 10:15:20 EDT
*** Bug 161064 has been marked as a duplicate of this bug. ***
Comment 4 Miloslav Trmač 2005-06-20 10:15:34 EDT
*** Bug 161066 has been marked as a duplicate of this bug. ***
Comment 5 Miloslav Trmač 2005-06-20 10:15:34 EDT
*** Bug 161065 has been marked as a duplicate of this bug. ***
Comment 6 Miloslav Trmač 2005-06-20 10:15:56 EDT
*** Bug 161063 has been marked as a duplicate of this bug. ***
Comment 7 Miloslav Trmač 2005-06-20 10:16:01 EDT
*** Bug 161067 has been marked as a duplicate of this bug. ***
Comment 8 Miloslav Trmač 2005-06-20 10:16:18 EDT
*** Bug 161069 has been marked as a duplicate of this bug. ***
Comment 9 Bill Nottingham 2005-06-20 12:48:46 EDT
This means that the output of a script would change based on how the user may
have configured their language, as opposed to being generally consistent across
the system. That could surprise users; as such, I'm not sure I'd want to make
this change now. Perhaps once http://fedoraproject.org/wiki/FCNewInit is in
place, this could be revisited.

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