Bug 10448 - Checks for "on"/"off" from chkconfig also when using foreign languages
Summary: Checks for "on"/"off" from chkconfig also when using foreign languages
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: piranha
Version: 6.2
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Phil Copeland
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-03-30 17:20 UTC by Trond Eivind Glomsrød
Modified: 2008-05-01 15:37 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2000-03-30 21:05:43 UTC
Embargoed:


Attachments (Terms of Use)

Description Red Hat Bugzilla 2000-03-30 17:20:23 UTC
piranha uses chkconfig to check the status of certain components, and
checks the return string for "on"/"off". This approach doesn't work when
LANG or LC_ALL has been set.

Workaround: Run piranha like this:

LANG="" LC_ALL="" piranha

Comment 1 Red Hat Bugzilla 2000-03-30 21:05:59 UTC
This entry is referring to the piranha X window GUI, which is an obsolete
component and will not appear in future releases of piranha. It was included in
RH Linux 6.2 to help older piranha users migrate to the new web GUI.

Because the component is obsolete, and there is a work-around, this bugzilla
entry is being flagged as WONTFIX.

However a patch has been created to fix this, and a corrected version may appear
on Red Hat's web site (in errata or rawhide) in the future as part of an
upcoming web GUI update. Until then, user's can manually apply the following
patch to 6.2's piranha source code to achieve the same result:


--- piranha/gui/lvs-glue.c      Mon Mar  6 19:30:46 2000
+++ piranha.new/gui/lvs-glue.c  Thu Mar 30 15:19:35 2000
@@ -11,6 +11,10 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  *
+ *
+ *   2000-03-30 - Trond Eivind  Glomsrxd <teg>
+ *                Fixed an i18n problem -
+ *                chkconfig doesn't reply on/off in all languages
  */

 #include "lvs-glue.h"
@@ -586,8 +590,9 @@
       break;
     }

-
-  f = popen("/sbin/chkconfig --list", "r");
+  /* Unset LC_ALL and LANG to avoid some i18n problems */

+
+  f = popen("LC_ALL=\"\" LANG=\"\" /sbin/chkconfig --list", "r");

   if (f == NULL)
     {

Comment 2 Red Hat Bugzilla 2000-04-18 15:21:59 UTC
FYI: The patch will appear in next release.
It will not be posted to errata, but may
appear in rawhide in the future.

Comment 3 Red Hat Bugzilla 2000-04-27 18:30:59 UTC
Another Update: Since this GUI is being dropped, this patch will not appear in
any future release of piranha. User's experiencing this problem will need to
apply the manual patch shown above.


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