zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh workers <zsh-workers@zsh.org>
Subject: Re: [bug] history corrupt on utf8
Date: Sun, 23 Jun 2013 11:33:58 -0700	[thread overview]
Message-ID: <CAH+w=7ZQiT8g3uU+rzmKNWC+WE-xOrVCX_LUHZKJq5tPnOxgtw@mail.gmail.com> (raw)
In-Reply-To: <CAHYJk3RqD-JfWKUeG08Atrbhcoz9XZEXvBP_b_cP21EMy5RunA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 462 bytes --]

On Jun 22, 2013 7:07 PM, "Mikael Magnusson" <mikachu@gmail.com> wrote:
>
> The history file isn't saved verbatim, since the command line can
> contain non-utf8, nuls, etc.

To be more specific, the history file is saved in the same format used to
represent history lines internally, except for prefixing newlines with
backslash.  The file is only "corrupted" if zsh itself can't re-read it.
We gave up on sharing history files with other shells a long time ago.

  reply	other threads:[~2013-06-23 18:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-22 18:45 Alexander Voikov
2013-06-23  2:06 ` Mikael Magnusson
2013-06-23 18:33   ` Bart Schaefer [this message]
2013-06-23 21:24     ` Mikael Magnusson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAH+w=7ZQiT8g3uU+rzmKNWC+WE-xOrVCX_LUHZKJq5tPnOxgtw@mail.gmail.com' \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).