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...
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: initscripts (Show other bugs)
9
All Linux
medium Severity low
: ---
: ---
Assigned To: Bill Nottingham
Brock Organ
:
Depends On:
Blocks:
  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:
Environment:
Last Closed: 2003-07-08 21:47:12 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)
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):
initscripts-7.14-1

How reproducible:
Always

Steps to Reproduce:
1. edit /etc/sysconfig/i18n and set LANG to non-english, non-asian value (e.g.
de_DE.UTF-8)
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.