From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28217 invoked by alias); 12 Mar 2012 11:02:57 -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: 30350 Received: (qmail 4817 invoked from network); 12 Mar 2012 11:02:46 -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.161.171 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=zvGBKlOw7W2L+64Zomqpbu1mxpfYu2pcokNQasMYCe4=; b=phkOszaVo39wgR8EDRdK6tYOdkm95h0E9/USEuMGjxTloeBTY8gADR8DXn4GqYHPrb rlsxn1xQO7SCmRfkdbyHUC+h2Xc2MGMc4oY0hZQJ7a/pvB5U9ifztloCnzb8+C5AH6aL N+JhcixyUiowVcNOeL0UIYIGB1YgOhDmv/cyzBriftZwewEPQMSU+kmxLXeym82C6sP1 yjXzPqJbNLaimqY3UTnS+d3zSyZDXM0RBT7LbneKmB74GRahjPaztgRSYV4qqCNpWWFh Pdw6Hc+1CI5vWm/ZIgVXOFC9Wo+wcyn8X0AIA2PCW3Xz0zZQlWeFhT4jbjOb4LORn/DR 0wCw== MIME-Version: 1.0 In-Reply-To: References: <120311141935.ZM12005@torch.brasslantern.com> <120311205638.ZM21245@torch.brasslantern.com> Date: Mon, 12 Mar 2012 12:02:41 +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:59, Mikael Magnusson wrote: > 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_DU= P). >>> >>> 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 h= as >>> 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 mes= sage. Sorry for triple posting, apparently there was some confusion with compdump vs coredump, there was never a crash :). --=20 Mikael Magnusson