[Freeswitch-svn] [commit] r8390 - freeswitch/trunk/libs/libedit/src
Freeswitch SVN
stkn at freeswitch.org
Tue May 13 18:02:51 EDT 2008
Author: stkn
Date: Tue May 13 18:02:50 2008
New Revision: 8390
Modified:
freeswitch/trunk/libs/libedit/src/makelist
Log:
Better fix for the tr issue on solaris: force the C locale for the tr call since the issue is cause by the system using utf8 (or any other multibyte locale)
Modified: freeswitch/trunk/libs/libedit/src/makelist
==============================================================================
--- freeswitch/trunk/libs/libedit/src/makelist (original)
+++ freeswitch/trunk/libs/libedit/src/makelist Tue May 13 18:02:50 2008
@@ -36,13 +36,6 @@
# 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 @@
#
-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");
More information about the Freeswitch-svn
mailing list