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.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, 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 6BC19237FE for ; Tue, 30 Apr 2024 04:32:17 +0200 (CEST) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1714444337; b=av1UAbcoulF0rzIrm/UDCalP2protHelMLM5Gyg6+ym3Rk4A3fotO8BeLbxdVFfVAfUTvFLr0z ow5Q/lfGlHZVfeXoR/h+Cgjmo42EJKCYQGh9PrVzxcWYoeGgivPARiUDYEy3sI84O7Vwpi2oAQ MCAnCVT5HHG0BMV67yPk1Rl1U+HCZmFQSuJqIAkKyq91xZ9N4QpT4KdIUVho6TGoiGyktZZW4O yXXDW9BzLB8bUFJGKrHvRpzqCdHvOveGAWzoTi0c/9e9vAAUqkrVIkfq9/h1RNQJbdubwJttqY B9mck3/Xa5jfEmpPSm40MPFIlpcdEKxHjT8nRdak50bOdA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mta-snd-e10.biglobe.ne.jp) smtp.remote-ip=27.86.113.10; dkim=pass header.d=kba.biglobe.ne.jp header.s=default-1th84yt82rvi header.a=rsa-sha256; dmarc=none header.from=kba.biglobe.ne.jp; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1714444337; bh=fdWoM6T+X8CoA1+BiCJX1Y/xtThOxc5w62kZ8Zb7q+g=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:DKIM-Signature:Message-ID:In-Reply-To:To:References:Date: Subject:MIME-Version:Content-Transfer-Encoding:Content-Type:From: DKIM-Signature; b=fSFeECzdGbsnPIuoCTlrgSc8ILEExFCPzx3Z3Ej8643m7kmZWJAaCGzMWZh7JIfgPS6OVxGr95 DzjgR76cVkE9ZqFBf51b+aJKq6FHeOKnZA58fn9qEFcUeopJA3YKwAwT4DqsNCPbTpCFwq9cIY VMfY7HHAd/FY7w8NzFjw7+lu1dlUDi9U8kPHcetStoyIPvaTt3MwP/YCUwVsNo4MayYdRSHrPe G/0j8qQzJupEf6k8hQkUSY7W1rlL8AwxdjH4CHY/YWC6++wAg3J/8w7E7C+xBR1gPBdXcWmq4m 4ZdjMzfTyJH94JZSfg5qZ+OLjSus56chwRYOm2FyfxEmvQ==; 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:Message-Id:In-Reply-To:To:References: Date:Subject:Mime-Version:Content-Transfer-Encoding:Content-Type:From: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=scqeDJCKbhzSBk8dAqrYxFCwjURYk2b86JOyYYbfvos=; b=AaItOLkiS53phDJp4fB546tB9j 0EXMiUyO3fdiz777Vr2yDd/rsjmmgKIpSIZU0kicXKyVyL6OaV53OZxKK22jFCF28D2prBYEIgMc7 H89dMiYv1VlZbyN6vxyZxyUDS3TqSM/AHj2eInsMOcxBlgwi8y0BkD+GhcxmmuhaKX4Pybl77pFWO Dp6iRrj6KKXmmYFoxeXfP6+EIld9NJ7ztgmjUPGPysMlywUcoueTrKThS0TqmNVjE1U4bvR+iq59B 5s6CD89D6femOrxIF14VJXHyLaiFgJ8kkLGwxbG/dTohBl3cuU8iyhCzf+LklEsKgktqbpKBKkWSK qDhsAdlg==; Received: by zero.zsh.org with local id 1s1dI0-0008Mh-6c; Tue, 30 Apr 2024 02:32:16 +0000 Authentication-Results: zsh.org; iprev=pass (mta-snd-e10.biglobe.ne.jp) smtp.remote-ip=27.86.113.10; dkim=pass header.d=kba.biglobe.ne.jp header.s=default-1th84yt82rvi header.a=rsa-sha256; dmarc=none header.from=kba.biglobe.ne.jp; arc=none Received: from mta-snd-e10.biglobe.ne.jp ([27.86.113.10]:45089) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1s1dHj-00083S-6r; Tue, 30 Apr 2024 02:32:00 +0000 Received: from mail.biglobe.ne.jp by mta-snd-e10.biglobe.ne.jp with ESMTP id <20240430023155173.KDLX.112366.mail.biglobe.ne.jp@biglobe.ne.jp> for ; Tue, 30 Apr 2024 11:31:55 +0900 From: "Jun. T" Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.4\)) Subject: Re: Bug report; git tab-completion on macOS within paths containing unicode characters Date: Tue, 30 Apr 2024 11:31:53 +0900 References: <1C935B84-003D-4822-A142-EC9DF817EA54@kba.biglobe.ne.jp> To: zsh-workers@zsh.org In-Reply-To: Message-Id: <172BB257-968F-4CF5-AE3C-F93704ED2049@kba.biglobe.ne.jp> X-Mailer: Apple Mail (2.3696.120.41.1.4) X-Biglobe-Sender: takimoto-j@kba.biglobe.ne.jp DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kba.biglobe.ne.jp; s=default-1th84yt82rvi; t=1714444315; bh=scqeDJCKbhzSBk8dAqrYxFCwjURYk2b86JOyYYbfvos=; h=From:Subject:Date:References:To:In-Reply-To; b=hFamTPT4zW3whgpbXmlGdGaL3ABfnORVY3llPmxILLq6NObpBR7FyBHFMcsWqqdrrVgezOc7 INb7Xs65uxOZE5vv2Cy0yhO0SkkHiCZ0iDJj5DWZ9ZfcHs2t4er+cbMLpK+BaEAw7E0mkzXiF0 ikUHkOYcZ5/olsQQkhUnr68/TwNxLLvERnN8+DW1wiSp4+cS0dMKOWLcIaeTLXVHLdWMn6Ncb5 OkfFlER6oo7t3oGwiEOrDeqbPOPvXCpKO7985EaVec2c+V1Vt7wqEJsDUV5R5i8TjtsYWzM3FX uiaVg50lNpObzJSjeoE5VOuvG9urr2wUz/PVgkYUozCfq42A== X-Seq: 52909 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: > 2024/04/30 10:57=E3=80=81Bart Schaefer = =E3=81=AE=E3=83=A1=E3=83=BC=E3=83=AB: >=20 > On Mon, Apr 29, 2024 at 5:41=E2=80=AFPM Jun. T = wrote: >>=20 >>> 2024/04/30 2:54=E3=80=81Bart Schaefer = =E3=81=AE=E3=83=A1=E3=83=BC=E3=83=AB: >>>=20 >>> On Mon, Apr 29, 2024 at 10:38=E2=80=AFAM Jun. T = wrote: >>>>=20 >>>> In __git_files (called from __git_other_files), 'git ls-files' >>>> is called two times. >>>=20 >>> Comments in the function indicate this is intentional: >>=20 >> Yes, but the second call is just for "better than nothing", >> so the first call should better succeed, I think. >=20 > I don't think the first call ever succeeds on files that are not > already known to git, 'git ls-fils --others' gives untracked files. >> I tried >> git ls-files $'/path/to/\xc3\xbc/test2' >> and >> git ls-files $'/path/to/u\xcc\x88/test2' >> but both didn't work. Isn't this a bug of git? >=20 > Neither of those worked for me either, even without NFD characters in > the file name, until I was cd'd inside the repository. If there are NFD characters, they do not work even inside the repo. But I think at least one of them should work. % cd /path/to/=C3=BC % git ls-files $'/path/to/u\xcc\x88' # NFD fatal: /path/to/=C3=BC: '/path/to/=C3=BC' is outside repository at = '/path/to/=C3=BC' (in the error message, the 1st and 2nd =C3=BC is NFC, the 3rd is NFD) I run git within a debugger (lldb), and noticed that, on macOS, git internally converted the pathspec on the command line (for example $'/path/to/u\xcc\x88/test2') into NFC. But it treats the top level working directory name in NFD, so the pathspec (NFC) is considered as outside of the working tree (NFD). I will send a bug report to git@vger.kernel.org.=