pkgsrc/shells/bash2/patches/patch-ad
minskim 51a394a206 Disable multibyte support only when wctype_t is not available. The
previous patches disabled it on NetBSD unconditionally.  Bump PKGREVISION.

Pointed out by Kibum Han.  Thanks to junyoung@ for testing.

OK'ed by schmonz@ and wiz@.
2004-06-22 14:05:39 +00:00

13 lines
516 B
Text

$NetBSD: patch-ad,v 1.5 2004/06/22 14:05:39 minskim Exp $
--- lib/readline/rlmbutil.h.orig Thu Dec 20 15:54:38 2001
+++ lib/readline/rlmbutil.h Tue Dec 17 15:35:45 2002
@@ -35,7 +35,7 @@
#if defined (HAVE_WCTYPE_H) && defined (HAVE_WCHAR_H)
# include <wchar.h>
# include <wctype.h>
-# if defined (HAVE_MBSRTOWCS) /* system is supposed to support XPG5 */
+# if defined (HAVE_MBSRTOWCS) /* system is supposed to support XPG5 */ && defined (HAVE_WCTYPE_T)
# define HANDLE_MULTIBYTE 1
# endif
#endif