Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Apr 2006 01:43:48 GMT
From:      John Birrell <jb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 95299 for review
Message-ID:  <200604150143.k3F1hmFs089176@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=95299

Change 95299 by jb@jb_freebsd2 on 2006/04/15 01:43:19

	This is just a hack to avoid having to address wide-character support right
	now. There are bigger fish to fry.

Affected files ...

.. //depot/projects/dtrace/src/contrib/opensolaris/lib/libgen/common/gmatch.c#3 edit

Differences ...

==== //depot/projects/dtrace/src/contrib/opensolaris/lib/libgen/common/gmatch.c#3 (text) ====

@@ -48,6 +48,11 @@
 #include "_range.h"
 #else
 /* DOODAD */ static int multibyte = 0;
+#define WCHAR_CSMASK    0x30000000
+#define valid_range(c1, c2) \
+    (((c1) & WCHAR_CSMASK) == ((c2) & WCHAR_CSMASK) && \
+    ((c1) > 0xff || !iscntrl((int)c1)) && ((c2) > 0xff || \
+    !iscntrl((int)c2)))
 #endif
 
 #define	Popwchar(p, c) \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604150143.k3F1hmFs089176>