[IRCServices] Patch: Make IRCServices 5.1.13 compile on Mac OS X

Andrew Church achurch at achurch.org
Sun Dec 7 20:09:15 PST 2008


Fixed for the next release (I just replaced the ranges with literals to
make sure there are no future surprises).  Thanks for the report!

  --Andrew Church
    achurch at achurch.org
    http://achurch.org/

>Hi!
>
>Attached is a patch that makes IRCServices 5.1.13 compile on Mac OS X:  
>the problem was that on Mac OS X (tested with 10.5.5)  the  
>transformation with tr(1) is broken when $LANG (or $LC_xxx) is set:
>
>   $ echo $LANG
>   de_DE.ISO8859-1
>   $ echo crypto | tr '[a-z]' '[A-Z]'
>   CRンPUO
>
>This is needed to create the correct #define's in config.h.
>So we set it to something sane ("C").
>
>Regards
>Alex
>
>
>diff -rup ircservices-5.1.13-orig/configure ircservices-5.1.13/configure
>--- ircservices-5.1.13-orig/configure	2008-01-06 01:17:39.000000000  
>+0100
>+++ ircservices-5.1.13/configure	2008-11-09 15:25:23.000000000 +0100
>@@ -163,7 +163,7 @@ test_function () {
>      if [ ! "$proto" ] ; then
>          proto="(...)"
>      fi
>-    func2=`echo $func | tr '[a-z]' '[A-Z]'`
>+    func2=`echo $func | LC_ALL=C tr '[a-z]' '[A-Z]'`
>      if [ ! "$TEST" ] ; then
>          TEST="return 0;"
>      fi
>
>------------------------------------------------------------------
>To unsubscribe or change your subscription options, visit:
>http://lists.ircservices.za.net/mailman/listinfo/ircservices