From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: from zero.zsh.org (zero.zsh.org [IPv6:2a02:898:31:0:48:4558:7a:7368]) by inbox.vuxu.org (Postfix) with ESMTP id C93A225877 for ; Fri, 26 Apr 2024 09:18:18 +0200 (CEST) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1714115898; b=EqW6ALn631oZTTfaB4jBnItRO1nLs6GwHa/J8vo4B7QrWC1ydPl2d/19Z2CeEPCGquEB7TvQSf AEU/mB6WT5IMT99r22Tq/0BHj3k6nKxWAAViYirBi14sv9G6t51w0s31y8CyP5gwKtaS82tnKs e9wIxDda3wFjQKl3M/jVxNXSI9A7dtGggFwmjpoM3c61Cj4i28AU+Xxa+ALU8qux5GBXiug6Ag dzMbyRDCEv3S4pqPb3fN6FcMB90UXbSqdxVx1RIOg0nGQrvc7LIZQnuWCqTD1VrbKClENoeE6g muxsDF9Pk0tOMGtcBGoiF+HQx1486+eCoBcmmsMNeqFt1g==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (www15.servertown.ch) smtp.remote-ip=94.231.94.134; dmarc=none header.from=delley.net; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1714115898; bh=nRYvfyzvtgN/TPrAh+0CCOxtvNL9UE6QgGJvrQT3LN0=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:To:Subject:Message-ID:Date:From:Reply-To: MIME-Version:DKIM-Signature; b=mU/SSuQXgjJlwl63LmcUEg9WD4tjdXIm3Gsbixby3LpKeUjKGjZvqH3k7msd5zZ9laPu3vAbRO 8mx+VJ3W8S7XgdZqrV+jAonZZF2cDyBOIsA0/XjBRPclXFzc/iospbiRLHPQ8LN12BwHHin9cj zZSNmkNV9+YfEWAoSHrbxnH0BOe5qtbds+s85VbSeQdGkwaCoJdpfQvWI46+awFB8pQPZOrJt9 WshtHlS1pXvSlUdLafzqEQTA5Rtd7uyZMW5gfjpusgwjBrYgyhaoXjYlS3QbK6zj4yIO4Nv5LK 6hg+/p0V6HO7snXcynbxKoL3EJvywQnHSQploite/6wTmQ==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:To:Subject:Message-ID: Date:From:Reply-To:MIME-Version:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References; bh=9bVGS6B+RH4gwxYAUm57EoBmpfNbhde9cPykhPeDxC8=; b=d9s6ARvEZfRKiIlfG0VJl0xMjm kXp30FxSLc7arrLTRJ9nTGOTIznh7lRC36Uhspjjd1UPMdaln2/A/yBfveYlVXzT+HXCmG9SQjY53 nao/ZK4w4GbRStckiMZsxC8ea4blBGytiKzZdRMy6PGMYgDIsMgbxVTQYVuVkBxem1SYXXBCcKLhz 92cwg8ZlojYkfpDlLeT5Bi0ScpGOL+sSXSAlWn97SlMPDsMYGqHXISXWDhmuJjngIGy6R4gByE3Md CEISXjUkzGjOBVa+QGokw8QCgO3yGqbHB0Yk6SMdCgNkhwXnO00Q8yjr1dQoJzIzVpE8Ob5/8pPCy RVcxtsdQ==; Received: by zero.zsh.org with local id 1s0Fqb-000IGS-Re; Fri, 26 Apr 2024 07:18:17 +0000 Authentication-Results: zsh.org; iprev=pass (www15.servertown.ch) smtp.remote-ip=94.231.94.134; dmarc=none header.from=delley.net; arc=none Received: from www15.servertown.ch ([94.231.94.134]:59721) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1s0Fpy-000HwB-KC; Fri, 26 Apr 2024 07:17:39 +0000 Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) by www15.servertown.ch (Postfix) with ESMTPSA id 79926160B8B for ; Fri, 26 Apr 2024 09:17:36 +0200 (CEST) Authentication-Results: www15.servertown.ch; spf=pass (sender IP is 209.85.221.45) smtp.mailfrom=pu.y@delley.net smtp.helo=mail-wr1-f45.google.com Received-SPF: pass (www15.servertown.ch: connection is authenticated) Received: by mail-wr1-f45.google.com with SMTP id ffacd0b85a97d-34a3e0b31e6so1337656f8f.1 for ; Fri, 26 Apr 2024 00:17:36 -0700 (PDT) X-Gm-Message-State: AOJu0Yy2/Q0t695JcAyY+SutdZ1lXda9UIGoAVWGWejfHIrypYMr+8Yd YRFTGl2pf6wWSYXqqpM8UzyWTYOMprPn/BqpxbmWZhOaYXxkKuADT2rqB5IZ+G1WWZ6z61PxOn8 mvIvew3tRf9CYGdpmS4S8kSwZsvY= X-Google-Smtp-Source: AGHT+IEq/TkayKdML0Pv1xNqWbWFJtZxm5zt1WW+4BaDJjkg2tUVLyG5eU+Y8HJfrt5L4C1Fb5uPrtQMvbYfxjhgFuI= X-Received: by 2002:a5d:58d7:0:b0:346:cd6f:40d4 with SMTP id o23-20020a5d58d7000000b00346cd6f40d4mr1268359wrf.59.1714115856123; Fri, 26 Apr 2024 00:17:36 -0700 (PDT) MIME-Version: 1.0 Reply-To: pu.y@delley.net From: Yves Delley Date: Fri, 26 Apr 2024 09:17:00 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Bug report; git tab-completion on macOS within paths containing unicode characters To: zsh-workers@zsh.org Content-Type: multipart/alternative; boundary="000000000000b555300616fab2e7" X-PPP-Message-ID: <171411585692.985243.7353620896022099763@www15.servertown.ch> X-PPP-Vhost: delley.net X-Seq: 52896 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: --000000000000b555300616fab2e7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, I may have found an issue with tab-completion for git on macOS (using oh-my-zsh; but they indicate that git tab-completion is an upstream issue; see https://github.com/ohmyzsh/ohmyzsh/issues/12380). If I attempt to tab-complete on`git add` within a repo whose path contains unicode characters in NFD (decomposed) form, no completions are presented. With unicode characters in NFC form, everything works as expected. It appears that the macOS Finder application writes folder names in NFD form, whereas on Terminal.app, you have to jump through some hoops to get there. Steps to reproduce: On macOS 14.4, with OMZ installed through homebrew and with the `git` plugin enabled, try the following: - Verify that command completion works normally: - `mkdir /tmp/test1 && cd /tmp/test1` - `git init` - `touch test.txt` - Type `git add t`, then press TAB and see `test.txt` being suggested - Optional: `rmdir -r /tmp/test1` - Repeat with a unicode path in NFD form - `cd /tmp` - `mkdir $(echo 'u\xcc\x88')`. I did not find a better way to create a folder with a unicode character in NFD form using the Terminal. In particular, typing the corresponding key `=C3=BC` on a `de_CH` keyboard cre= ates that character in NFC form. - `cd =C3=BC/` - here, it doesn't matter which form you use; after all, = they are still the same unicode character - `mkdir test2` - `cd test2` - `git init` - `touch test.txt` - Type `git add t`, then press TAB; nothing is being suggested - Optional: `rmdir -r /tmp/=C3=BC/test2` Software versions: - macOS 14.4.1 - zsh 5.9 Locale: LC_ALL=3Dde_CH.UTF-8 LANG=3Den_GB.UTF-8 LC_CTYPE=3DUTF-8 Thank you, Yves --000000000000b555300616fab2e7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

I may have found an issue with tab-completion f= or git on macOS (using oh-my-zsh; but they indicate that git tab-completion= is an upstream issue; see https://github.com/ohmyzsh/ohmyzsh/issues/12380).
If I a= ttempt to tab-complete on`git add` within a repo whose path contains unicod= e characters in NFD (decomposed) form, no completions are presented. With u= nicode characters in NFC form, everything works as expected. It appears tha= t the macOS Finder application writes folder names in NFD form, whereas on = Terminal.app, you have to jump through some hoops to get there.

Step= s to reproduce:

On macOS 14.4, with OMZ installed through homebrew = and with the `git` plugin enabled, try the following:
=C2=A0- Verify tha= t command completion works normally:
=C2=A0 =C2=A0 - `mkdir /tmp/test1 &= amp;& cd /tmp/test1`
=C2=A0 =C2=A0 - `git init`
=C2=A0 =C2=A0 - `= touch test.txt`
=C2=A0 =C2=A0 - Type `git add t`, then press TAB and see= `test.txt` being suggested
=C2=A0 =C2=A0 - Optional: `rmdir -r /tmp/tes= t1`
=C2=A0- Repeat with a unicode path in NFD form
=C2=A0 =C2=A0- `cd= /tmp`
=C2=A0 =C2=A0- `mkdir $(echo 'u\xcc\x88')`. I did not fin= d a better way to create a folder with a unicode character in NFD form usin= g the Terminal. In particular, typing the corresponding key `=C3=BC` on a `= de_CH` keyboard creates that character in NFC form.
=C2=A0 =C2=A0- `cd = =C3=BC/` - here, it doesn't matter which form you use; after all, they = are still the same unicode character
=C2=A0 =C2=A0- `mkdir test2`
=C2= =A0 =C2=A0- =C2=A0`cd test2`
=C2=A0 =C2=A0- `git init`
=C2=A0 =C2=A0-= `touch test.txt`
=C2=A0 =C2=A0- Type `git add t`, then press TAB; nothi= ng is being suggested
=C2=A0 =C2=A0- Optional: `rmdir -r /tmp/=C3=BC/tes= t2`

Software versions:
=C2=A0- macOS 14.4.1
=C2=A0- zsh 5.9
Locale:
=C2=A0 LC_ALL=3Dde_CH.UTF-8
=C2=A0 LANG=3Den_GB.UTF-8=
=C2=A0 LC_CTYPE=3DUTF-8

Thank you,
Yves
--000000000000b555300616fab2e7--