提交 8541587d authored 作者: Stefan Knoblich's avatar Stefan Knoblich

Better fix for the tr issue on solaris: force the C locale for the tr call since…

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)

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8390 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 91d2ca29
...@@ -36,13 +36,6 @@ ...@@ -36,13 +36,6 @@
# makelist.sh: Automatically generate header files... # makelist.sh: Automatically generate header files...
AWK=awk 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>" USAGE="Usage: $0 -h|-e|-fc|-fh|-bc|-bh|-m <filenames>"
...@@ -148,7 +141,7 @@ case $FLAG in ...@@ -148,7 +141,7 @@ case $FLAG in
# #
-fh) -fh)
cat $FILES | $AWK '/el_action_t/ { print $3 }' | \ cat $FILES | $AWK '/el_action_t/ { print $3 }' | \
sort | $TR '[:lower:]' '[:upper:]' | $AWK ' sort | LANG=C tr '[:lower:]' '[:upper:]' | $AWK '
BEGIN { BEGIN {
printf("/* Automatically generated file, do not edit */\n"); printf("/* Automatically generated file, do not edit */\n");
printf("#ifndef _h_fcns_c\n#define _h_fcns_c\n"); printf("#ifndef _h_fcns_c\n#define _h_fcns_c\n");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论