zsh-workers
 help / color / mirror / code / Atom feed
From: "Jörg Sommer" <joerg@alea.gnuu.de>
To: zsh-workers@sunsite.dk
Subject: Re: Unicode problem
Date: Mon, 21 Jan 2008 13:33:57 +0000 (UTC)	[thread overview]
Message-ID: <slrnfp97q5.dvv.joerg@alea.gnuu.de> (raw)
In-Reply-To: <20080117120932.4458d35a@news01>

Hallo Peter,

Peter Stephenson <pws@csr.com> wrote:
> On Thu, 17 Jan 2008 10:39:55 +0000 (UTC)
> Jörg Sommer <joerg@alea.gnuu.de> wrote:
>> I'm running zsh in an UTF‐8 environment. Today I wanted to know what this
>> “f” character is and found that zsh can't handle it.
>
> Please, when sending bug reports, can people say explicitly what's actually
> going wrong and what they're doing to provoke it.

Sorry, I'll improve this on my coming reports.

> I think you mean that when you move the cursor backward it miscounts
> the character it's on,

Yes. I insert the characters. Pressing ^A moves the cursor before the U
of unicode.

% unicode -s f<^A>
% unicode -s f
 ^ The cursor is here.

The same happens with “s̶”, “u̲” and “o̅”.

>> The problem seems to be the zero with character. This explains why I can
>> go back before the U of “unicode.”
>
> So that actually displays as zero width on your terminal?

Yes, the zero width character gets no cell. It's drawn as a small
dashed box above the previous character “f”.

> (I'm having to guess this, too.) Yes, that's bound to cause the shell
> problems.  In fact, it's going to be quite impossible to edit: how do
> you even know it's there? On gnome-terminal, which I'm using, it shows
> up as as a thick underscore which is counted as width 1,

The zero width character is drawn with width one?

Bye, Jörg.
-- 
> Ich kenn mich mit OpenBSD kaum aus, was sind denn da so die
> Vorteile gegenueber Linux und iptables?
Der Fuchsschwanzeffekt ist größer. :->
Message-ID: <slrnb11064.54g.hschlen@humbert.ddns.org>


  reply	other threads:[~2008-01-21 14:03 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-17 10:39 Jörg Sommer
2008-01-17 12:09 ` Peter Stephenson
2008-01-21 13:33   ` Jörg Sommer [this message]
2008-01-21 14:15     ` Peter Stephenson
2008-01-21 14:29       ` Mikael Magnusson
2008-01-21 14:45         ` Peter Stephenson
2008-01-21 18:16           ` Bart Schaefer
2008-01-22  9:57             ` Peter Stephenson
2008-01-22  0:12           ` Vincent Lefevre
2008-01-22  1:09           ` Mikael Magnusson
2008-01-22  1:25             ` Vincent Lefevre
2008-01-22 16:19             ` Clint Adams
2008-01-22 16:25               ` Mikael Magnusson
2008-01-22  1:49         ` Clint Adams
2008-01-22  2:07           ` Mikael Magnusson
2008-01-22 16:26             ` Clint Adams
2008-01-21 20:28       ` Jörg Sommer

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=slrnfp97q5.dvv.joerg@alea.gnuu.de \
    --to=joerg@alea.gnuu.de \
    --cc=zsh-workers@sunsite.dk \
    /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).