This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 106912 - I18N : use /usr/xpg4/bin/tr in netbeans command for Solaris
Summary: I18N : use /usr/xpg4/bin/tr in netbeans command for Solaris
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: Sun Solaris
: P1 blocker (vote)
Assignee: _ rkubacki
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2007-06-16 10:00 UTC by Masaki Katakai
Modified: 2008-12-22 14:40 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Masaki Katakai 2007-06-16 10:00:59 UTC
I'm using NetBeans 6.0 of 200706141200, but netbeans command can not invoke IDE in ja locale.

% setenv LC_MESSAGES C
% bin/netbeans
Bad string
expr: syntax error
bin/netbeans: test: argument expected
% 

tr command is being used as below,

    SunOS*)
        mem=`/usr/sbin/prtconf | grep Memory | tr -dc '[:digit:]'`
        mem=`expr $mem / 4`
        ;;

but /bin/tr command will not work properly in ja locale with
[:digit:], it returns "Bad string".

% /usr/sbin/prtconf | grep Memory | tr -dc '[:digit:]'
Bad string
% 

Please use /usr/xpg4/bin/tr instead, it will work.

% /usr/sbin/prtconf | grep Memory | /usr/xpg4/bin/tr -dc '[:digit:]'
2047%
Comment 1 Ken Frank 2007-06-16 17:26:52 UTC
marking as p1; this is not related to localization or translation at all;
any user in various locales
could run into this even when using m10 or daily netbeans.
(and the usual unix path points to /bin/tr, which is where the problem is)

Also, it might be needed to be fixed for linux or mac if there are other versions
of tr on them.

ken.frank@sun.com
Comment 2 Antonin Nebuzelsky 2007-06-19 15:55:53 UTC
Assigning to Radim.
Comment 3 _ rkubacki 2007-06-19 16:44:00 UTC
Fixed earlier today.

Checking in ide/launcher/unix/netbeans;
/shared/data/ccvs/repository/ide/launcher/unix/netbeans,v  <--  netbeans
new revision: 1.48; previous revision: 1.47
Comment 4 Ken Frank 2007-07-06 20:42:35 UTC
v
Comment 5 _ rkubacki 2007-07-23 13:07:15 UTC
issue #110296 is another problem so I changed the fix to use default 

tr -dc '[0-9]'

I hope this will be safe