Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 161075

Summary: init scripts don't take into account current locale, only default system locale
Product: [Fedora] Fedora Reporter: Dimitri Papadopoulos <dimitri.papadopoulos>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED WONTFIX QA Contact: Brock Organ <borgan>
Severity: low Docs Contact:
Priority: medium    
Version: 4CC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-06-20 16:48:46 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Dimitri Papadopoulos 2005-06-20 13:39:07 UTC
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 14:15:00 UTC
*** Bug 161072 has been marked as a duplicate of this bug. ***

Comment 2 Miloslav Trmač 2005-06-20 14:15:08 UTC
*** Bug 161062 has been marked as a duplicate of this bug. ***

Comment 3 Miloslav Trmač 2005-06-20 14:15:20 UTC
*** Bug 161064 has been marked as a duplicate of this bug. ***

Comment 4 Miloslav Trmač 2005-06-20 14:15:34 UTC
*** Bug 161066 has been marked as a duplicate of this bug. ***

Comment 5 Miloslav Trmač 2005-06-20 14:15:34 UTC
*** Bug 161065 has been marked as a duplicate of this bug. ***

Comment 6 Miloslav Trmač 2005-06-20 14:15:56 UTC
*** Bug 161063 has been marked as a duplicate of this bug. ***

Comment 7 Miloslav Trmač 2005-06-20 14:16:01 UTC
*** Bug 161067 has been marked as a duplicate of this bug. ***

Comment 8 Miloslav Trmač 2005-06-20 14:16:18 UTC
*** Bug 161069 has been marked as a duplicate of this bug. ***

Comment 9 Bill Nottingham 2005-06-20 16:48:46 UTC
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.