Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1000214

Summary: service can not use the language LANG= correctly
Product: Red Hat Enterprise Linux 6 Reporter: JianHong Yin <jiyin>
Component: initscriptsAssignee: Lukáš Nykrýn <lnykryn>
Status: CLOSED WONTFIX QA Contact: qe-baseos-daemons
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.4CC: jamacku, msekleta, xzhou, yuokada
Target Milestone: rcKeywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-11-21 14:36:12 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description JianHong Yin 2013-08-23 01:05:15 UTC
Description of problem:


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


How reproducible:


Steps to Reproduce:
1. install a rhel6.4 with chinese simplified language set
2. see the follow section: Actual results
3.

Actual results:
[root@dhcp-13-188 ~]# LANG=C  /etc/init.d/autofs  start
Starting automount:                                        [  OK  ]
[root@dhcp-13-188 ~]# LANG=C  /etc/init.d/autofs  stop
Stopping automount:                                        [  OK  ]
[root@dhcp-13-188 ~]# LANG=C service autofs start
正在启动 automount:                                       [确定]
  `--> LANG=C setup  should output in english ...
[root@dhcp-13-188 ~]# LANG=C service autofs stop
停止 automount:                                           [确定]



Additional info:

Comment 2 Lukáš Nykrýn 2013-08-23 14:37:24 UTC
I am not sure that this is a bug. As it is stated in the manpage "service
runs a System V init script in as predictable environment as possible,
removing most environment variables". Service is supposed to remove settings of environment variables.

Comment 3 RHEL Program Management 2013-10-14 02:35:46 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 4 Lukáš Nykrýn 2014-03-24 14:47:27 UTC
NOTABUG for reason from comment 2

Comment 5 Yuki Okada 2019-04-19 02:32:11 UTC
It is stated in service(8) that LANG environment variable is passed to the init scripts.

ENVIRONMENT
       LANG, TERM
              The only environment variables passed to the init scripts.

In fact, however, LANG is not passed as shown below.

# echo $LANG
ja_JP.UTF-8
# LANG=C service corosync status
corosync は停止しています
# LANG=C /etc/init.d/corosync status
corosync is stopped

It appears this is not an expected behavior.

Comment 6 Jan Macku 2019-11-21 14:17:09 UTC
This bug is currently fixed in upstream[1]. The LANG variable was never intended to be passed, so we fix man page.

Unfortunately we no longer fix these type of bugs in RHEL6.

[1] https://github.com/fedora-sysv/initscripts/commit/1fcae34d2fadb0ec46bd26b086b82ebefe033f65