From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12215 invoked by alias); 12 Mar 2012 10:49:00 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 30347 Received: (qmail 19986 invoked from network); 12 Mar 2012 10:48:57 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at csr.com does not designate permitted sender hosts) Date: Mon, 12 Mar 2012 10:08:31 +0000 From: Peter Stephenson To: Subject: Re: Certain unicode in hostname breaks with zsh 4.3.17 Message-ID: <20120312100831.0bb82360@pwslap01u.europe.root.pri> In-Reply-To: <120311205638.ZM21245@torch.brasslantern.com> References: <120311141935.ZM12005@torch.brasslantern.com> <120311205638.ZM21245@torch.brasslantern.com> Organization: Cambridge Silicon Radio X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.101.10.170] X-Scanned-By: MailControl 7.6.6 (www.mailcontrol.com) on 10.68.0.153 On Sun, 11 Mar 2012 20:56:38 -0700 Bart Schaefer wrote: > On Mar 11, 10:28pm, Mikael Magnusson wrote: > } > } 0x308C0x306B0x306A% echo $HOST > } zsh: no matches found: \M-c\M-^B|0x306B0x306A > > Hm. > > hostnam = (char *)zalloc(256); > gethostname(hostnam, 256); > setsparam("HOST", ztrdup(hostnam)); > zfree(hostnam, 256); > > Apparently that ztrdup(hostnam) should be a metafy(hostnam, -1, META_DUP). > > Should that get done with LOGNAME, MACHTYPE, OSTYPE, and VENDOR as well? LOGNAME is imported, so in principle needs this treatment; the others are from static defines so you might imagine they wouldn't. Still, I suppose it makes sense to be consistent when defining parameters initially, the hit is tiny. -- Peter Stephenson Software Engineer Tel: +44 (0)1223 692070 Cambridge Silicon Radio Limited Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, UK Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom More information can be found at www.csr.com. Follow CSR on Twitter at http://twitter.com/CSR_PLC and read our blog at www.csr.com/blog