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 30346
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: Certain unicode in hostname breaks with zsh 4.3.17
- Date: Sun, 11 Mar 2012 20:56:38 -0700
- In-reply-to: <CAHYJk3Q6RYa2gMQGy1Jr98zj3OxQzKMGGiUmcor=BMHcH46NgQ@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>
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author