zsh-workers
 help / color / mirror / code / Atom feed
From: Andrey Borzenkov <arvidjaar@gmail.com>
To: zsh-workers@sunsite.dk
Subject: Re: Problems with non-ascii filenames
Date: Sat, 28 Feb 2009 22:35:50 +0300	[thread overview]
Message-ID: <200902282235.52527.arvidjaar@gmail.com> (raw)
In-Reply-To: <090228102250.ZM3434@torch.brasslantern.com>

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

On 28 февраля 2009 21:22:50 Bart Schaefer wrote:
> On Feb 28, 11:37am, Ismail wrote:
> } [~]> echo xo<0308>o<0308>o<0308>x
> } xÃÃÃx
> }
> } Somehow "Ã" character is replaced by <0308> while tab completing.
[...]
> Wolfgang, if you're reading this, something that I forgot to mention
> in my reply to you is that sometime during 4.3.x zsh began to pay
> closer attention to characters that are absent from the declared LANG
> character set and to either refuse to process them at all, or to
> render them as digits surrounded by angle brackets. 

Unfortunately that does not play nicely with PRINTEIGHTBIT. Currently 
manual states:

PRINT_EIGHT_BIT
     Print eight bit characters literally in completion lists, etc.
     This option is not necessary if your system correctly returns the
     printability of eight bit characters (see man page ctype(3)).


But PRINTEIGHTBIT affect only one function - (wcs_)niceputchar. Still 
conversion to <XXXX> happens directly in zrefresh() if character deemed 
to be unprintable *and* MULTIBYTE_SUPPORT is set.

So either documentation must be fixed (by clearly mentioning that this 
option has no effect if compiled with multibyte). This is bad IMHO as 
average user is not supposed to know build options.

Or code should be fixed. I am not exactly sure - is it correct that raw 
character is stuffed into output buffer? Or are they all supposed to go 
via niceputchar in the first place?



[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

  reply	other threads:[~2009-02-28 19:36 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-28  9:37 İsmail Dönmez
2009-02-28 18:22 ` Bart Schaefer
2009-02-28 19:35   ` Andrey Borzenkov [this message]
2009-02-28 23:06     ` Bart Schaefer
2009-02-28 21:28 ` Andrey Borzenkov
2009-02-28 22:28   ` İsmail Dönmez
2009-03-01  2:15     ` Vincent Lefevre
2009-03-01  7:19       ` Mikael Magnusson
2009-03-01  7:45       ` Andrey Borzenkov
2009-03-02  3:11         ` Vincent Lefevre
2009-03-01  8:05       ` Andrey Borzenkov
2009-03-02  3:16         ` Vincent Lefevre

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=200902282235.52527.arvidjaar@gmail.com \
    --to=arvidjaar@gmail.com \
    --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).