mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-06 09:01:13 +02:00
22123: probe for wcswidth() and assume 1 if not found
This commit is contained in:
parent
b71a632d2f
commit
d8a851a9a8
3 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2006-01-06 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* 22123: configure.ac, Src/system.h: probe for wcswidth() and
|
||||
assume 1 if not found.
|
||||
|
||||
2006-01-05 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* 22118: Doc/Zsh/builtins.yo: fix documentation for what
|
||||
|
|
|
@ -703,6 +703,10 @@ extern short ospeed;
|
|||
*/
|
||||
# include <wchar.h>
|
||||
# include <wctype.h>
|
||||
#ifndef HAVE_WCSWIDTH
|
||||
/* wcswidth is missing on OpenBSD: assume single-width characters */
|
||||
#define wcswidth(x, y) (1)
|
||||
#endif
|
||||
#endif
|
||||
#ifdef HAVE_LANGINFO_H
|
||||
# include <langinfo.h>
|
||||
|
|
|
@ -1121,7 +1121,7 @@ AC_CHECK_FUNCS(strftime difftime gettimeofday \
|
|||
pcre_compile pcre_study pcre_exec \
|
||||
nl_langinfo \
|
||||
erand48 open_memstream \
|
||||
wctomb mbrtowc wcrtomb iconv \
|
||||
wctomb mbrtowc wcrtomb wcswidth iconv \
|
||||
grantpt unlockpt ptsname \
|
||||
htons ntohs)
|
||||
AC_FUNC_STRCOLL
|
||||
|
|
Loading…
Reference in a new issue