zsh-users
 help / color / mirror / code / Atom feed
From: "Chr. von Stuckrad" <stucki@mi.fu-berlin.de>
To: zsh-users@zsh.org
Subject: Re: ZSH display raw keycodes for ¡ and ¿ spanish characters
Date: Fri, 26 Aug 2016 13:07:26 +0200	[thread overview]
Message-ID: <20160826110725.GB7071@localhost.mi.fu-berlin.de> (raw)
In-Reply-To: <CAAVO5++VhEjb0TqoUz7yHtpj+yaW7TO5rZ3GQGJZQiSyf88N1Q@mail.gmail.com>

On Thu, 25 Aug 2016, José García Juanino wrote:

> >> When you type the '¡', I would expect that symbol in the interactive
> >> shell, instead of '<00a1>' output.

> Doing a further research I have found a workaround: disable-multibyte
> in configure. But it is not a zsh fault, as multibyte was enabled ...
> ... (mentioning mutt) ...

Having 'the same problem in mutt and zsh' reminded me of a time,
when I *remotely* connected from a local terminal (rxvt-unicode).

EVERY place, where your typed chars 'come across' (i.e. terminalprog,
pty, connection, remote pty (may be multiple times with screen or tmux),
last shell or mutt), the connection needs to know, whether to use
single or multibyte characters.  And often the default in ptys is
single, so then you need 'stty iutf8' to get correct data to shell
or program (and you need this on all steps of the connection and
inside terminals and screen or tmux).

After making sure, I ALWAYS and ONLY use 'utf8'-on-the-wire
all my problems with multibyte shell input and most of
the problems with mutt or vim are gone now.

Alternatively, all steps might be single-byte, and with the
same 'older' locale.  SOME utf8 combinations still come
through then, but others are interpreted as something like
<control-whatever><strange-char> messing up the line.
So then you should make sure to have NO utf8 at all.

Stucki

-- 
Christoph von Stuckrad      * * |nickname |Mail <stucki@mi.fu-berlin.de> \
Freie Universitaet Berlin   |/_*|'stucki' |Tel(Mo.,Mi.):+49 30 838-75 459|
Mathematik & Informatik EDV |\ *|if online|  (Di,Do,Fr):+49 30 77 39 6600|
Takustr. 9 / 14195 Berlin   * * |on IRCnet|Fax(home):   +49 30 77 39 6601/


      reply	other threads:[~2016-08-26 11:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-27 21:36 José García Juanino
2016-07-28 14:17 ` Peter Stephenson
2016-08-25 21:19   ` José García Juanino
2016-08-26 11:07     ` Chr. von Stuckrad [this message]

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=20160826110725.GB7071@localhost.mi.fu-berlin.de \
    --to=stucki@mi.fu-berlin.de \
    --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).