From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26356 invoked by alias); 12 Mar 2012 10:56:58 -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: 30348 Received: (qmail 14105 invoked from network); 12 Mar 2012 10:56: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=-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=UTP04AMQVkIChuaC8Jdc4pgGZyzkhaSUPQCfvyBSj4g=; b=yIZJobDSyoBXuekVJ/xGi5BDDbLb/Tc3VyKv+xQBc6dnRwfl7tDPuNgTRKbe/NnnJ3 8jfDYV06twxYUQEyM+gmC2xe4hcOpXbVTVJUK3U9Tlu7TCYqazh+Dd2aBN2aZmPMfweu iZP8AuQ5nIHynFYVCIemwTJxS5P/Tvoez63oTBxuGwMfpO/KM8jeHgtWlTeirdqxvGys O2ZI4LzwHjerBjiiJf23gsd+U7pyGHv3YsX+zDdfYxh5eK+z2N/uhRqgWbQds1bU3jep ZzQDGYwmUZhlSorTaOy03U0I/EMOUwgwKr3e+WQZaclD81IZCJJW7q+uptLxNL29jpmw EMLA== MIME-Version: 1.0 In-Reply-To: <120311205638.ZM21245@torch.brasslantern.com> References: <120311141935.ZM12005@torch.brasslantern.com> <120311205638.ZM21245@torch.brasslantern.com> Date: Mon, 12 Mar 2012 11:56:50 +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 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 has > 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% --=20 Mikael Magnusson