Bug 876

Summary: netscape startup script breaks if $LANG is set to another language than english
Product: [Retired] Red Hat Linux Reporter: Wissmann, Klaus <kw>
Component: netscapeAssignee: Bill Nottingham <notting>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 5.1CC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-01-19 15:57:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Wissmann, Klaus 1999-01-19 08:14:56 UTC
the netscape startup script checks for rpm to return
"(none)" when queried for the install prefix. If $LANG is
set to "de" for example rpm will return "(kein)" which
breaks the script.

I use the following patch:

--- netscape.orig       Thu Oct  8 14:43:02 1998
+++ netscape    Thu Oct  8 14:43:55 1998
@@ -24,7 +24,7 @@
 fi

 I="`rpm -q $which --qf '%{INSTALLPREFIX}\n'`"
-if [ "$I" = "(none)" ]; then
+if echo "$I" | grep -q "(.*)" 2> /dev/null; then
     I=/usr
 fi

Comment 1 Christian Hechelmann 1999-01-19 11:54:59 UTC
It is easier to just invoke rpm with an unset LANG environment
variable, which makes the change only to be:

-I="`rpm -q $which --qf '%{INSTALLPREFIX}\n'`"
+I="`LANG= rpm -q $which --qf '%{INSTALLPREFIX}\n'`"
 if [ "$I" = "(none)" ]; then

Comment 2 Jeff Johnson 1999-01-19 15:35:59 UTC
I've changed this to an rpm problem even though it's the
way in which the script was written that is actually the
problem.

I believe this problem was fixed in (at least) rpm-2.5.5.
Upgrade rpm and see if that fixes the problem.

Otherwise, please reopen this bug and include the version of rpm
that (still) has the problem.

Comment 3 Bill Nottingham 1999-01-19 15:57:59 UTC
fixed in netscape-4.08-4.