Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Shared history and locales (charmap)



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