zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: pu.y@delley.net
Cc: zsh-workers@zsh.org
Subject: Re: Bug report; git tab-completion on macOS within paths containing unicode characters
Date: Sun, 28 Apr 2024 08:28:08 -0700	[thread overview]
Message-ID: <CAH+w=7ZSmQZ6dJrN4u9DoPDPZvfGMiYBEp42FVzVhZgWYbchoA@mail.gmail.com> (raw)
In-Reply-To: <CAB+zqbqmturuSzuOPuHs91beERmu5XHp_Jm0E5mA2PBfib0b_g@mail.gmail.com>

On Sun, Apr 28, 2024 at 12:23 AM Yves Delley <pu.y@delley.net> wrote:
>
> [...] for me, `git ls-files` seems to work normally

Try it with
  git ls-files $PWD
vs
  git ls-files ${(qqqq)PWD}

I think the problem is that NFD form ends up having the first byte of
the second nybble misinterpreted, so the string gets truncated at that
point.  That visibly happens in xterm (XQuartz) when I try to
copy-paste the pathname.  The (qqqq) flag just quotes the entire
string differently to push that through to ls-files, which then
properly composes it.


  reply	other threads:[~2024-04-28 15:29 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-26  7:17 Yves Delley
2024-04-27 19:14 ` Bart Schaefer
2024-04-27 19:31   ` Bart Schaefer
2024-04-28  7:22     ` Yves Delley
2024-04-28 15:28       ` Bart Schaefer [this message]
2024-04-28 18:59         ` Bart Schaefer
2024-04-28 19:01           ` Bart Schaefer
2024-04-29 17:37             ` Jun. T
2024-04-29 17:54               ` Bart Schaefer
2024-04-30  0:41                 ` Jun. T
2024-04-30  1:57                   ` Bart Schaefer
2024-04-30  2:31                     ` Jun. T

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='CAH+w=7ZSmQZ6dJrN4u9DoPDPZvfGMiYBEp42FVzVhZgWYbchoA@mail.gmail.com' \
    --to=schaefer@brasslantern.com \
    --cc=pu.y@delley.net \
    --cc=zsh-workers@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).