From: Ping Yin Date: Tue, 29 Nov 2022 03:49:09 GMT Subject: Re: [bug] git diff --word-diff gives wrong result for utf-8 chinese Message-ID: In-Reply-To: sorry, typo, s/--color-words/--word-diff/g Ping Yin On Tue, Nov 29, 2022 at 11:46 AM Ping Yin wrote: > > Result of "git diff" > > - 为1 > + 为2 > > or (if chinese can not be displayed correctly) > > - 1 > + 2 > > Actual result of "git diff --color-words" > > [-1-]{+2+} > > Expected result of "git diff --color-words" > > 为[-1-]{+2+} > > or (if chinese can not be displayed correctly) > > [-1-]{+2+} > > > Ping Yin