From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27878 invoked from network); 6 Jan 2006 11:34:05 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.0 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 6 Jan 2006 11:34:05 -0000 Received: (qmail 41382 invoked from network); 6 Jan 2006 11:33:59 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 6 Jan 2006 11:33:59 -0000 Received: (qmail 25020 invoked by alias); 6 Jan 2006 11:33:57 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 22123 Received: (qmail 25011 invoked from network); 6 Jan 2006 11:33:57 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 6 Jan 2006 11:33:57 -0000 Received: (qmail 41115 invoked from network); 6 Jan 2006 11:33:57 -0000 Received: from cluster-d.mailcontrol.com (HELO rly20d.srv.mailcontrol.com) (217.69.20.190) by a.mx.sunsite.dk with SMTP; 6 Jan 2006 11:33:53 -0000 Received: from exchange03.csr.com (uuk202166.uk.customer.alter.net [62.189.241.194] (may be forged)) by rly20d.srv.mailcontrol.com (MailControl) with ESMTP id k06BWj22004935 for ; Fri, 6 Jan 2006 11:33:49 GMT Received: from news01.csr.com ([10.103.143.38]) by exchange03.csr.com with Microsoft SMTPSVC(5.0.2195.6713); Fri, 6 Jan 2006 11:33:11 +0000 Received: from news01.csr.com (localhost.localdomain [127.0.0.1]) by news01.csr.com (8.13.1/8.12.11) with ESMTP id k06BXAjE000450 for ; Fri, 6 Jan 2006 11:33:10 GMT Received: from csr.com (pws@localhost) by news01.csr.com (8.13.1/8.13.1/Submit) with ESMTP id k06BX7pH000444 for ; Fri, 6 Jan 2006 11:33:07 GMT Message-Id: <200601061133.k06BX7pH000444@news01.csr.com> To: zsh-workers@sunsite.dk (Zsh hackers list) Subject: PATCH: multibyte configuration Date: Fri, 06 Jan 2006 11:33:06 +0000 From: Peter Stephenson X-OriginalArrivalTime: 06 Jan 2006 11:33:11.0608 (UTC) FILETIME=[F981BB80:01C612B4] Content-Type: text/plain MIME-Version: 1.0 X-Scanned-By: MailControl A-05-40-01 (www.mailcontrol.com) on 10.68.0.130 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 # include +#ifndef HAVE_WCSWIDTH +/* wcswidth is missing on OpenBSD: assume single-width characters */ +#define wcswidth(x, y) (1) +#endif #endif #ifdef HAVE_LANGINFO_H # include 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