[IRCServices] Patch: Make IRCServices 5.1.13 compile on Mac OS X
Alexander Barton
alex at barton.de
Tue Nov 11 08:55:02 PST 2008
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