Bug 876 - netscape startup script breaks if $LANG is set to another language than english
netscape startup script breaks if $LANG is set to another language than english
Status: CLOSED CURRENTRELEASE
Product: Red Hat Linux
Classification: Retired
Component: netscape (Show other bugs)
5.1
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Bill Nottingham
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 1999-01-19 03:14 EST by Wissmann, Klaus
Modified: 2014-03-16 22:08 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 1999-01-19 10:57:44 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Wissmann, Klaus 1999-01-19 03:14:56 EST
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 06:54:59 EST
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 10:35:59 EST
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 10:57:59 EST
fixed in netscape-4.08-4.

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