From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2993 invoked from network); 25 Apr 2007 09:21:38 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-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.8 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 25 Apr 2007 09:21:38 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 42673 invoked from network); 25 Apr 2007 09:21:31 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 25 Apr 2007 09:21:31 -0000 Received: (qmail 9639 invoked by alias); 25 Apr 2007 09:21:28 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 23321 Received: (qmail 9630 invoked from network); 25 Apr 2007 09:21:27 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 25 Apr 2007 09:21:27 -0000 Received: (qmail 42244 invoked from network); 25 Apr 2007 09:21:27 -0000 Received: from cluster-c.mailcontrol.com (168.143.177.190) by a.mx.sunsite.dk with SMTP; 25 Apr 2007 09:21:24 -0000 Received: from cameurexb01.EUROPE.ROOT.PRI ([62.189.241.200]) by rly04c.srv.mailcontrol.com (MailControl) with ESMTP id l3P9J1dU013909 for ; Wed, 25 Apr 2007 10:21:20 +0100 Received: from news01.csr.com ([10.103.143.38]) by cameurexb01.EUROPE.ROOT.PRI with Microsoft SMTPSVC(6.0.3790.1830); Wed, 25 Apr 2007 10:21:14 +0100 Received: from news01.csr.com (localhost.localdomain [127.0.0.1]) by news01.csr.com (8.13.8/8.13.4) with ESMTP id l3P9LECN024446 for ; Wed, 25 Apr 2007 10:21:14 +0100 Received: from csr.com (pws@localhost) by news01.csr.com (8.13.8/8.13.8/Submit) with ESMTP id l3P9LDGq024443 for ; Wed, 25 Apr 2007 10:21:14 +0100 Message-Id: <200704250921.l3P9LDGq024443@news01.csr.com> X-Authentication-Warning: news01.csr.com: pws owned process doing -bs To: zsh-workers@sunsite.dk Subject: Re: rfc2396 url encoding In-reply-to: <070424232221.ZM23158@torch.brasslantern.com> References: <20051106185713.GA11612@scowler.net> <1051106194911.ZM32000@candle.brasslantern.com> <20070425034745.GA11136@scowler.net> <070424232221.ZM23158@torch.brasslantern.com> Comments: In-reply-to Bart Schaefer message dated "Tue, 24 Apr 2007 23:22:20 -0700." Date: Wed, 25 Apr 2007 10:21:13 +0100 From: Peter Stephenson X-OriginalArrivalTime: 25 Apr 2007 09:21:14.0872 (UTC) FILETIME=[12912F80:01C7871B] Content-Type: text/plain MIME-Version: 1.0 X-Scanned-By: MailControl A-07-07-00 (www.mailcontrol.com) on 10.67.0.114 Bart Schaefer wrote: > What happens if you simply unsetopt multibyte within the function? > > urlencode() { > setopt localoptions extendedglob nomultibyte > input=( ${(s::)1} ) > print ${(j::)input/(#b)([^A-Za-z0-9_.!~*\'\(\)-])/%$(([##16]#match))} > } That's supposed to work and is the approved method of treating strings as individual bytes. I haven't tried it since the last thing I need at the moment is being drawn into another bug fix. -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070 To access the latest news from CSR copy this link into a web browser: http://www.csr.com/email_sig.php To get further information regarding CSR, please visit our Investor Relations page at http://ir.csr.com/csr/about/overview