Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Certain unicode in hostname breaks with zsh 4.3.17
- X-seq: zsh-workers 30350
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Certain unicode in hostname breaks with zsh 4.3.17
- Date: Mon, 12 Mar 2012 12:02:41 +0100
- Cc: zsh-workers@xxxxxxx
- 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==
- In-reply-to: <CAHYJk3RQ91Z_rTbCoe=REfyquxyP7KbbQ0qbWb5LAiHBrE63dQ@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAGO9HBhuTRJtxLvYgn3bgQ-1XO9OmEnE0SHmxzyWvwGPX_1V=g@mail.gmail.com> <CAH+w=7aqJcqgE=Oq_8CvrfCJazACVcXBHALP5YhBw6qR-ND=eA@mail.gmail.com> <CAH+w=7YptzOCFwG3u3g-CvyyenDUFea8rpm7o5g6gzyFzJGx7w@mail.gmail.com> <CAHYJk3TbR4S8NLbH7rut_uf0OBJg_vDzpZFwAqwoDcDBUkab7A@mail.gmail.com> <120311141935.ZM12005@torch.brasslantern.com> <CAHYJk3Q6RYa2gMQGy1Jr98zj3OxQzKMGGiUmcor=BMHcH46NgQ@mail.gmail.com> <120311205638.ZM21245@torch.brasslantern.com> <CAHYJk3TnrkEbgPbb-Py7cMwmodVSZtaYUzGd6oFsya5YJC+3NQ@mail.gmail.com> <CAHYJk3RQ91Z_rTbCoe=REfyquxyP7KbbQ0qbWb5LAiHBrE63dQ@mail.gmail.com>
On 12 March 2012 11:59, Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> On 12 March 2012 11:56, Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
>> On 12 March 2012 04:56, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> 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?
>>>
>>> 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
>> さわこ% autoload compinit
>> さわこ% compinit
>> compdump:135: bad pattern: .\M-c\M-^A?\M-c\M-^B[\M-c\M-^A>.11450
>> さわこ%
>
> Apparently he can't reproduce the crash anymore, only the bad pattern message.
Sorry for triple posting, apparently there was some confusion with
compdump vs coredump, there was never a crash :).
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author