From: Peter Stephenson <pws@csr.com>
To: zsh-workers@sunsite.dk (Zsh hackers list)
Subject: PATCH: multibyte configuration
Date: Fri, 06 Jan 2006 11:33:06 +0000 [thread overview]
Message-ID: <200601061133.k06BX7pH000444@news01.csr.com> (raw)
This probes for wcswidth() and assumes the value 1 if the function isn't
available, which at least means the code compiles on OpenBSD with
--enable-multibyte, though it still didn't seem to work.
Danek Duvall tried out a simplified test for multibyte handling on
Solaris which wasn't working for me, but it was for him, so I still have
no clue what's happening there. Any reports of working zsh with
--enable-multibyte (and real multibyte characters, I know that at least
it compiles and runs) on Solaris 8+ would be useful.
Index: configure.ac
===================================================================
RCS file: /cvsroot/zsh/zsh/configure.ac,v
retrieving revision 1.46
diff -u -r1.46 configure.ac
--- configure.ac 9 Dec 2005 19:20:02 -0000 1.46
+++ configure.ac 6 Jan 2006 11:28:36 -0000
@@ -1121,7 +1121,7 @@
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
Index: Src/system.h
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/system.h,v
retrieving revision 1.36
diff -u -r1.36 system.h
--- Src/system.h 15 Dec 2005 14:51:41 -0000 1.36
+++ Src/system.h 6 Jan 2006 11:28:39 -0000
@@ -703,6 +703,10 @@
*/
# 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>
Your mail client is unable to display the latest news from CSR. To access our news copy this link into a web browser: http://www.csr.com/email_sig.html
next reply other threads:[~2006-01-06 11:34 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-06 11:33 Peter Stephenson [this message]
2006-01-07 2:45 ` Danek Duvall
2006-01-07 8:04 ` Danek Duvall
2006-01-07 13:22 ` Peter Stephenson
2006-01-07 16:44 ` Danek Duvall
2006-02-03 15:46 PATCH: _hosts Peter Stephenson
2006-02-03 19:45 ` Danek Duvall
2006-02-03 22:40 ` Peter Stephenson
2006-02-03 22:48 ` Danek Duvall
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200601061133.k06BX7pH000444@news01.csr.com \
--to=pws@csr.com \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).