Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] fix failure of D07multibyte on Mac OS X
- X-seq: zsh-workers 35063
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: [PATCH] fix failure of D07multibyte on Mac OS X
- Date: Fri, 08 May 2015 17:42:30 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1431099752; bh=9QGNBsssXMhFT20+dsoCN0z3mWCZoaZKoFepeGjmvl4=; h=In-reply-to:From:References:To:Subject:Date:From:Subject; b=jJx525W8JlD9dlkJjc7dczSGwsfCKuUw+FrAjZYYJhHtAfOJ/3HsnMQBSk0Q5axbFT9hPmVdiI+2FU/3AcBLKwZZoriuwlNT3uG2nxLX0FFAqcirs6sJ2nnh0l3dcZnXbmjsY3NzFrv4Go0LFXeKdbiWxwtjbdPC7zHzW4JqKRW8SZbLj1+FYyx8/mDnpRVFkBsSh2JYJdPssHKixJDuTn/74oZ5iWKyjAr7GyWsvrQ2iRoYsgS/7ORbTboUTWvNZa1MfveYaStVHX/HTdwJN2OxmQGuvLLil6QZAhwVoluTAasyQvYSGysNH7HYgbURER0x3vL10LIIZqTUzV+1Cw==
- In-reply-to: <D142CC89-686F-412C-90F1-6CEFFC738DB5@kba.biglobe.ne.jp>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <D142CC89-686F-412C-90F1-6CEFFC738DB5@kba.biglobe.ne.jp>
> +#if defined(__APPLE__) && defined(BROKEN_ISPRINT)
> +#define ISPRINT(c) isprint_ascii(c)
> +#else
> +#define ISPRINT(c) isprint(c)
> +#endif
It seems that an effect of this patch is that a build on Solaris now
results in lots of warnings of this form:
"../../Src/ztype.h", line 82: warning: macro redefined: ISPRINT
Doing a grep for ISPRINT in /usr/include gives these two definitions,
though I've not traced which if either is being picked up.
/usr/include/netinet/ip_compat.h:#define ISPRINT(x) isprint((u_char)(x))
/usr/include/sys/euc.h:#define ISPRINT(c, wp) (wp._multibyte && !ISASCII(c) || isprint(c))
It's only a warning but it may be nicer to rename the macro to better
avoid the conflict.
Oliver
Messages sorted by:
Reverse Date,
Date,
Thread,
Author