f688aea8a7
Bug fixes: * fixed simple bind with a patch from Pawel Salek (fixes 1753419) Changes 1.2.2: Bug fixes: * fixed a crash when loading the state file on BSD systems (patch from the NetBSD people) * make command line argument handling more robust Changes 1.2.1: Build Improvements * fixed a bash expression
18 lines
562 B
Text
18 lines
562 B
Text
$NetBSD: patch-ac,v 1.2 2008/01/10 21:42:51 adam Exp $
|
|
|
|
--- src/filter.c.orig 2007-05-14 18:26:50.000000000 +0200
|
|
+++ src/filter.c
|
|
@@ -1036,11 +1036,11 @@ static char *unindent_filter(char *inden
|
|
break;
|
|
default:
|
|
/* caught spaces before -- this is testing for \n etc */
|
|
-#if defined(HAVE_ISWSPACE)
|
|
+#if defined(HAVE_ISWSPACE) && defined(HAVE_BTOWC)
|
|
if(!iswspace(btowc(c)))
|
|
#else
|
|
if(!isspace(c))
|
|
-#endif /* HAVE_ISWSPACE */
|
|
+#endif /* HAVE_ISWSPACE && HAVE_BTOWC */
|
|
unindented[f++] = c;
|
|
break;
|
|
}
|