From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14658 invoked from network); 14 Jan 2005 16:50:25 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 14 Jan 2005 16:50:25 -0000 Received: (qmail 69576 invoked from network); 14 Jan 2005 16:50:19 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 14 Jan 2005 16:50:19 -0000 Received: (qmail 13592 invoked by alias); 14 Jan 2005 16:50:05 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 20715 Received: (qmail 13569 invoked from network); 14 Jan 2005 16:50:03 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 14 Jan 2005 16:50:03 -0000 Received: (qmail 69275 invoked from network); 14 Jan 2005 16:50:03 -0000 Received: from mailhost1.csr.com (HELO MAILSWEEPER01.csr.com) (81.105.217.43) by a.mx.sunsite.dk with SMTP; 14 Jan 2005 16:49:58 -0000 Received: from exchange03.csr.com (unverified [10.100.137.60]) by MAILSWEEPER01.csr.com (Content Technologies SMTPRS 4.3.12) with ESMTP id for ; Fri, 14 Jan 2005 16:48:37 +0000 Received: from news01.csr.com ([10.103.143.38]) by exchange03.csr.com with Microsoft SMTPSVC(5.0.2195.6713); Fri, 14 Jan 2005 16:52:16 +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 j0EGnufP015784 for ; Fri, 14 Jan 2005 16:49:56 GMT Received: from csr.com (pws@localhost) by news01.csr.com (8.13.1/8.13.1/Submit) with ESMTP id j0EGntQY015781 for ; Fri, 14 Jan 2005 16:49:56 GMT Message-Id: <200501141649.j0EGntQY015781@news01.csr.com> X-Authentication-Warning: news01.csr.com: pws owned process doing -bs To: zsh-workers@sunsite.dk Subject: Re: Some groundwork for Unicode in Zle In-reply-to: <20050114155411.GA23624@clipper.ens.fr> References: <20050114155411.GA23624@clipper.ens.fr> Date: Fri, 14 Jan 2005 16:49:55 +0000 From: Peter Stephenson X-OriginalArrivalTime: 14 Jan 2005 16:52:16.0805 (UTC) FILETIME=[67763550:01C4FA59] X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-1.6 required=6.0 tests=BAYES_00,URIBL_SBL autolearn=no version=3.0.2 X-Spam-Hits: -1.6 =?iso-8859-1?Q?Fran=E7ois-Xavier?= Coudert wrote: > Hi all, > > I'm new to the list but I'm interested in UTF-8 inclusion into Zle. My > question is the following: have you considered the possibility of keeping > storing strings like the line edited in arrays of char (and not wide > chars), while using a few functions to handle the fact that one Unicode > character may be represented by a few chars (and one glyph by a few > Unicode characters, but I'm not sure how this can be handled). This works well inside the main shell --- we use something similar with a "Meta" character to quote characters special to the shell. This will probably continue. In the line editor, being able to access a character by index is fairly fundamental. Having to count every time we need to access a location would be a big change. It's better to have an array of the right type. In other places we will need to pass a wchar_t or even a wint_t, but this is better than having a multibyte string for every character. -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070 ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com **********************************************************************