Bug 876 - netscape startup script breaks if $LANG is set to another language than english
Summary: netscape startup script breaks if $LANG is set to another language than english
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: netscape
Version: 5.1
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 1999-01-19 08:14 UTC by Wissmann, Klaus
Modified: 2014-03-17 02:08 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 1999-01-19 15:57:44 UTC


Attachments (Terms of Use)

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.


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