Operating System - HP-UX
1832940 Members
2980 Online
110048 Solutions
New Discussion

Re: netstat behavour according to LANG environment variable

 
SOLVED
Go to solution
Jdamian
Respected Contributor

netstat behavour according to LANG environment variable

I found 'netstat -rnv' command prints or misses 'Refs' field in header according to value of LANG environment variable.

Check the next headers...

# LANG=C netstat -rnv
Routing tables
Dest/Netmask Gateway Flags Use Interface Pmtu

# LANG=C.iso88591 netstat -rnv
Routing tables
Dest/Netmask Gateway Flags Refs Use Interface Pmtu


I think it is a bug, doesn't it ?
3 REPLIES 3
Dietmar Konermann
Honored Contributor
Solution

Re: netstat behavour according to LANG environment variable

I agree, seems to be a bug in the "C" catalog. However it seems to be fixed in 11.11.

BTW, the "hardcoded" catalog is OK also:

LANG= netstat -rnv
Routing tables
Dest/Netmask Gateway Flags Refs Use Interface Pmtu

Best regards...
Dietmar.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)
Jdamian
Respected Contributor

Re: netstat behavour according to LANG environment variable

You are right, Dietmar.
Look at output of the following commands:

#dumpmsg /usr/lib/nls/msg/C/netstat.cat | grep Gateway

6 Gateway
36 Dest/Netmask Gateway Flags Use Interface Pmtu\n
37 Destination Gateway Flags Use Interface Pmtu\n


#strings /usr/bin/netstat | grep Gateway
Dest/Netmask Gateway Flags Refs Use Interface Pmtu

P.D: how to report this kind of bugs to HP ?
Dietmar Konermann
Honored Contributor

Re: netstat behavour according to LANG environment variable

Done.
In fact I just reported this defect as JAGae59146. However, we should not expect a patch especially for this problem. :-)

Best regards...
Dietmar.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)