Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Shared history and locales (charmap)
- X-seq: zsh-workers 24211
- From: "Mikael Magnusson" <mikachu@xxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: Shared history and locales (charmap)
- Date: Tue, 11 Dec 2007 14:59:33 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=55TcF0nDb2WWqbpUdjmHnqZhlmO1T4A7LkQCG/1aULY=; b=h1C0RBNtARuT83m1rL7BdR70pJeEbJDq6Se9HBkzltkd0uVBzA8CVA1OS/Q2xiQ21dAqyF1DU6GT08pwt2pZbhkG+8uUQdUObGSjUiHjlcXflKfTUAt0y7dPsJTTRn8CyR51D7TESygfW0xFpkeXXYv5PaOhoJ6kfHVua2nmFmk=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=wBt9082YiXp9k1BvqR1W5tcqheOYLKnns2uAcILRJDbZQHzpSFHo0cIMaiMt4VsJhzc/dv32xxT84I4dntZLg0mogU7yzVGzEZ10OZP2aMcr61lzaCCb9982bFPULAr3p04f2CAdJZmJB6exCe/XIETTeOw6sXcHObxtTyPnENU=
- In-reply-to: <20071211135412.GB7651@xxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20071211135412.GB7651@xxxxxxxxxxxxxxxxxxx>
On 11/12/2007, Vincent Lefevre <vincent@xxxxxxxxxx> wrote:
> Another problem: When using different locales (e.g. ISO-8859-1 and
> UTF-8) and a shared history, zsh isn't able to correctly retrieve
> the command, as locale information isn't stored in the history file.
>
> IMHO, there should be an option so that the history is stored and
> retrieved in UTF-8. And if for some reason, zsh finds an invalid
> UTF-8 sequence in the history, it should use the current charmap
> as a fallback. In practice, this would allow zsh to continue to
> work with old history files.
I think it should insert any invalid bytes as a $'\abc' sequence. Just
because I'm running
a terminal in another locale doesn't mean all my files were renamed...
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author