Re: [BUG] Unicode filenames handling in `git log --stat`
- From
Torsten Bögershausen <tboegi@web.de>
- Date
- Aug 10, 2022, 11:41 UTC
- Message-ID
- <20220810114151.uhaun5gbknd5btyz@tb-raspi4>
- In-Reply-To
- <20220810095157.wo4jaumtu47qplsb@tb-raspi4>
On Wed, Aug 10, 2022 at 11:51:58AM +0200, Torsten Bögershausen wrote:
Show 14 quoted lines
> On Wed, Aug 10, 2022 at 12:56:11PM +0400, Alexander Meshcheryakov wrote: > > Thanks for digging. > > (And please, try to avoid top-posting here in this list) > > > I believe I have found exact place where strlen is used incorrectly > > This is at diff.c:show_stats > > > > https://github.com/git/git/blob/c50926e1f48891e2671e1830dbcd2912a4563450/diff.c#L2623 > > > > It probably should be replaced with one of utf8_width, utf8_strnwidth > > or utf8_strwidth from utf8.c >
Please forget what I wrote earlier - I was running the wrong `git` binary :-( Sorry for the noise.
I can probably do more testing soonish.