From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17799 invoked by alias); 12 Mar 2012 10:59:45 -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: 30349 Received: (qmail 26035 invoked from network); 12 Mar 2012 10:59:43 -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=-1.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW, T_DKIM_INVALID autolearn=no version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.213.43 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=Pw/SAS5xN2eCuuGzF+dZI0ws5YsUcH7FNKCb3QB96Xw=; b=WB3RB5LjW/Hb7WeBuedBfxRmOJu6pjRH4DyOwCEWUoQHH/IAeilW5fweEwDk+6y+2T NzeqCW6J6Krk4aMYNeg1yIozzBX3np7QNiYqQFqePsDZCl1XiT9iMI1p3hgIeSbWj606 LwF7hCqaSqWdAONr+0F6p662NztP8LWGh7ZoQj7K6RWox2+CVImWOQqHATnpSOKiQdm3 U6M5Q2nyIJXhOdeCfywsTthqTCuql6Dvcb/2nAUfh3ZpXujcDkABI3sIVKHCImQgbdGk k/9rIXG8NzD06Eh0mfj81POvkThmG8dumMKWsifC09q6Yg68IKO64MhJhskvRdEpCJ2Y cumA== MIME-Version: 1.0 In-Reply-To: References: <120311141935.ZM12005@torch.brasslantern.com> <120311205638.ZM21245@torch.brasslantern.com> Date: Mon, 12 Mar 2012 11:59:40 +0100 Message-ID: Subject: Re: Certain unicode in hostname breaks with zsh 4.3.17 From: Mikael Magnusson To: Bart Schaefer Cc: zsh-workers@zsh.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 12 March 2012 11:56, Mikael Magnusson wrote: > On 12 March 2012 04:56, 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 =3D (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? >> >> None of that explains the OP's crash, though. The above code excerpt ha= s >> not changed in at least a dozen years, and he says 4.3.15 did not show a >> problem. > > I asked him on irc, and his crash comes from compdump, i think this line, > mv -f $_d_file ${_d_file%.$HOST.$$} > It doesn't crash for me though, > % zsh -f > =E3=81=95=E3=82=8F=E3=81=93% autoload compinit > =E3=81=95=E3=82=8F=E3=81=93% compinit > compdump:135: bad pattern: .\M-c\M-^A?\M-c\M-^B[\M-c\M-^A>.11450 > =E3=81=95=E3=82=8F=E3=81=93% Apparently he can't reproduce the crash anymore, only the bad pattern messa= ge. --=20 Mikael Magnusson