zsh-users
 help / color / mirror / code / Atom feed
From: Danek Duvall <duvall@comfychair.org>
To: zsh-users@zsh.org
Subject: zsh doesn't understand some multibyte characters
Date: Wed, 13 May 2015 09:14:11 -0700	[thread overview]
Message-ID: <20150513161411.GA4834@lorien.comfychair.org> (raw)

Perhaps this is just on Solaris, I dunno.  But for some multibyte
characters ("…", for instance), if I type them on the commandline -- either
using the Compose key on my keyboard, or via insert-unicode-character or
insert-composed-character -- then if I move the cursor back over them or
delete back over them, zsh gets confused and moves two positions instead of
one:

    $ PS1='$ '
    $ …_ (cursor at _; now hit backspace once)
    $_

I do have access to a Linux box running 4.3.17, and it doesn't seem to be a
problem there, but I don't know whether that's because of a different
version or a different OS.

I'll note that the same thing happens with all the other shells on Solaris,
so I'm guessing it's not directly a problem with zsh.  FWIW, bash (and
libreadline) is compiled with Solaris curses, while zsh is compiled with
ncurses, so I'm guessing it's not that.  But vim has no problems
whatsoever (old Solaris vi does).  Where else should I be looking for the
problem?

Thanks,
Danek


             reply	other threads:[~2015-05-13 16:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-13 16:14 Danek Duvall [this message]
2015-05-13 17:43 ` Bart Schaefer
2015-05-13 18:29   ` Danek Duvall
2015-05-13 20:20     ` Bart Schaefer
2015-05-13 21:24       ` Chet Ramey
2015-05-14 16:43     ` Jun T.
2015-05-14 17:32       ` Danek Duvall

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=20150513161411.GA4834@lorien.comfychair.org \
    --to=duvall@comfychair.org \
    --cc=zsh-users@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).