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 30348
- 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 11:56:50 +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=UTP04AMQVkIChuaC8Jdc4pgGZyzkhaSUPQCfvyBSj4g=; b=yIZJobDSyoBXuekVJ/xGi5BDDbLb/Tc3VyKv+xQBc6dnRwfl7tDPuNgTRKbe/NnnJ3 8jfDYV06twxYUQEyM+gmC2xe4hcOpXbVTVJUK3U9Tlu7TCYqazh+Dd2aBN2aZmPMfweu iZP8AuQ5nIHynFYVCIemwTJxS5P/Tvoez63oTBxuGwMfpO/KM8jeHgtWlTeirdqxvGys O2ZI4LzwHjerBjiiJf23gsd+U7pyGHv3YsX+zDdfYxh5eK+z2N/uhRqgWbQds1bU3jep ZzQDGYwmUZhlSorTaOy03U0I/EMOUwgwKr3e+WQZaclD81IZCJJW7q+uptLxNL29jpmw EMLA==
- In-reply-to: <120311205638.ZM21245@torch.brasslantern.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>
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
さわこ%
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author