]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Better fix for the tr issue on solaris: force the C locale for the tr call since...
authorStefan Knoblich <stkn@freeswitch.org>
Tue, 13 May 2008 22:02:50 +0000 (22:02 +0000)
committerStefan Knoblich <stkn@freeswitch.org>
Tue, 13 May 2008 22:02:50 +0000 (22:02 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8390 d0543943-73ff-0310-b7d9-9358b9ac24b2

libs/libedit/src/makelist

index b7352a74dfc2466821e575ddd05e3a372f96cd46..a4e2628fee37c150df0794d5941744b8c3fcd841 100644 (file)
 # makelist.sh: Automatically generate header files...
 
 AWK=awk
-TR=tr
-
-# workaround for solaris
-if [ -x /usr/xpg4/bin/tr ]
-then
-     TR=/usr/xpg4/bin/tr
-fi
 
 USAGE="Usage: $0 -h|-e|-fc|-fh|-bc|-bh|-m <filenames>"
 
@@ -148,7 +141,7 @@ case $FLAG in
 #
 -fh)
     cat $FILES | $AWK '/el_action_t/ { print $3 }' | \
-    sort | $TR '[:lower:]' '[:upper:]' | $AWK '
+    sort | LANG=C tr '[:lower:]' '[:upper:]' | $AWK '
        BEGIN {
            printf("/* Automatically generated file, do not edit */\n");
            printf("#ifndef _h_fcns_c\n#define _h_fcns_c\n");