Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 98807 - apm resume does not restart network if default locale specifies non-english LC_MESSAGES
apm resume does not restart network if default locale specifies non-english L...
Product: Red Hat Linux
Classification: Retired
Component: initscripts (Show other bugs)
All Linux
medium Severity low
: ---
: ---
Assigned To: Bill Nottingham
Brock Organ
Depends On:
  Show dependency treegraph
Reported: 2003-07-08 20:22 EDT by Martin Kuehl
Modified: 2014-03-16 22:37 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-07-08 21:47:12 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
proposed patch to /etc/sysconfig/apm-scripts/apmscript (579 bytes, patch)
2003-07-08 20:23 EDT, Martin Kuehl
no flags Details | Diff

  None (edit)
Description Martin Kuehl 2003-07-08 20:22:03 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686) Gecko/20030530 Galeon/1.3.5

Description of problem:
The apm resume script depends on `init.d/network status` to print english
message. It tries to workaround this by specifying LC_ALL=C as part of the
command-line (see: /etc/sysconfig/apm-scripts/apmscript, line 115), but that
value is ignored as /etc/init.d/network sources /etc/init.d/functions before
execution and thus overrides the specified locale with the default locale.
The resulting messages aren't parsed correctly by apmscript and so it doesn't
know which netdevices to restart upon resume.

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

How reproducible:

Steps to Reproduce:
1. edit /etc/sysconfig/i18n and set LANG to non-english, non-asian value (e.g.
2. edit /etc/sysconfig/apmd and set NET_RESTART to yes
3. suspend computer
4. resume computer: network will be down
5. (alternatively to 2./3./4.) run "LC_ALL=C /etc/init.d/network/status":
Messages will be non-english

Actual Results:  network is down

Expected Results:  network should have been restarted

Additional info:

this is easily fixed by modifying /etc/sysconfig/apm-scripts/apmscript a little,
see attachment
Comment 1 Martin Kuehl 2003-07-08 20:23:57 EDT
Created attachment 92811 [details]
proposed patch to /etc/sysconfig/apm-scripts/apmscript

this changes the command in line 115 so that any (default) locale will be
ignored in /etc/init.d/functions
This way, Messages aill be in english and thus readable, enabling net_restart
upon resume
Comment 2 Bill Nottingham 2003-07-08 21:47:12 EDT
This should be already fixed in rawhide apmd.

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