Subject: Re: [BUG] Unicode filenames handling in `git log --stat`

From: Junio C Hamano <[email-masked]>
Date: Wed, 10 Aug 2022 08:53:28 -0700

Torsten Bögershausen <[email-masked]> writes:

>  git log --stat
> [snip]
>  Arger.txt  | 1 +
>  Ärger.txt | 1 +
>    2 files changed, 2 insertions(+)
>
> From this very first experiment I would suspect that we use
> strlen() somewhere rather then utf8.c::git_gcwidth()

Yeah, that does sound like the case, and quite honestly, knowing
that the diffstat code is way older than unicode-width code, which
was added by you in mid 2014, I am not all that surprised if we used
to use strlen() throughout and we still do by mistake.

Thanks for a doze of sanity.