Re: [BUG] Unicode filenames handling in `git log --stat`
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Aug 10, 2022, 05:55 UTC
- Message-ID
- <xmqqsfm4prqk.fsf@gitster.g>
- In-Reply-To
- <20220809182045.568598-1-calvinwan@google.com>
Calvin Wan <calvinwan@google.com> writes:
Show 5 quoted lines
> Hi Alexander, > > Thank you for the report! I attempted to reproduce with the steps you > provided, but was unable to do so. What commands would I have to run > on a clean git repository to reproduce this?
Sounds like a symptom observable when the width computed by utf8.c::git_gcwidth(), using the width table imported from unicode.org, and the width the terminal thinks each of the displayed character has, do not match (e.g. seen when ambiguous characters are involved, https://unicode.org/reports/tr11/#Ambiguous).