Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: utf-8
- X-seq: zsh-users 19559
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Павлов Николай Александрович <kp-pav@xxxxxxxxx>
- Subject: Re: utf-8
- Date: Thu, 18 Dec 2014 10:25:18 +0100
- Cc: Ray Andrews <rayandrews@xxxxxxxxxxx>, Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=giB4xNfe7xz7w1iJC+vAPnbuoim1mOGK5cw14uVmt9M=; b=FrRFcpXBIdL9pH3r/qrNLfwpNxlkOvtUwZgzk2o39QVh1Xaf1E5nZZnTI+PTO2eU6t A/GfoCuJvlA25vSNzpIx0x0YyYXc6s7nKPsmhj29+peIqrceWhYI80MhFdUaMQeKEZ9c UUxcFCd20bw9BXmNNB2cp7eiFST/LEYmUCPqUyG8o2xaLFidaKgfevxy1KyzDRdKLe76 77tgKkAUbTQyvtDz3Ei5+Wwdu6+8FFptFTbD2WXGqiCmnQsiwHTXqR9w+/t3+7AF14Ry s5et50NYYbXQLZIVjf1eL3LnOhmPREt4pQaZiBTla3XTMgHsZOuZS2Hsf4faxrIZMTGR Rt1w==
- In-reply-to: <48944F64-7308-4D4A-B056-6B467CE232C1@yandex.ru>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <5491C5E7.1070207@eastlink.ca> <577101418848314@web25o.yandex.ru> <5492225C.3070403@eastlink.ca> <48944F64-7308-4D4A-B056-6B467CE232C1@yandex.ru>
On Thu, Dec 18, 2014 at 7:48 AM, Павлов Николай Александрович
<kp-pav@xxxxxxxxx> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>
> On December 18, 2014 3:39:56 AM EAT, Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:
>>On 12/17/2014 12:31 PM, ZyX wrote:
>>
>>
>>ZyX,
>>> It looks like it is the following: - Explicit support in RE patterns.
>>
>>> - COMBINING_CHARS option that tells zsh that terminal is able to
>>display
>>... I did some reading, but it's too 'zoomed in' for me, it presumes
>>one
>>already more or less knows what's going on. I don't.
>
> Your question is too broad to give more detailed answer and the intent is not clear. You are also posting to zsh users and developers mainly live in zsh workers, reading users with lower priority. I know some internals of zsh (not the part you are requesting though) and know some "dark corners" of unicode processing in general, but I cannot give more detailed explanation without knowing what you are after.
All mails to zsh-users are automatically sent to subscribers of
zsh-workers as well. The main issue with non-singlebyte encodings is
that almost all the code used to assume that one byte equals one
character equals one on-screen character cell. This took a couple of
years to fix, but is more or less done now. There is nothing specific
to UTF-8 in the code as far as I know, except in getkeystring, but
that looks more like an optimization to avoid calling iconv(). Eg, zsh
works fine if you run under EUC-JP too, but then you can of course
only type japanese characters (and the ascii set).
Most of what Pavlov(if my cyrillic isn't too rusty) said applies to
unicode, not utf-8, which is a character set, not a character
encoding. All the unicode things should work fine in any
encoding/character set, assuming the character you want exists in it.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author