Re: bug report: symbolic-ref --short command echos the wrong text while use Chinese language
- From
Eric Sunshine <sunshine@sunshineco.com>
- Date
- Feb 16, 2023, 06:08 UTC
- Message-ID
- <CAPig+cSvP4cd0qqKpu2+-3rwPTgPu=o=Y7yPJdoz374usdEEJQ@mail.gmail.com>
- In-Reply-To
- <20230215171924.6dutxlsi64h4upkg@tb-raspi4>
On Wed, Feb 15, 2023 at 12:19 PM Torsten Bögershausen <tboegi@web.de> wrote:
Show 14 quoted lines
> On Wed, Feb 15, 2023 at 11:37:11AM -0500, Eric Sunshine wrote: > > On Wed, Feb 15, 2023 at 11:33 AM Torsten Bögershausen <tboegi@web.de> wrote: > > > It would be helpful, to pipe the result into xxd: > > > git symbolic-ref --short HEAD | xxd > > > > $ git symbolic-ref --short HEAD | xxd > > 00000000: e6b5 8be8 af95 2de5 8a0a ......-... > > $ LANG=C git symbolic-ref --short HEAD | xxd > > 00000000: e6b5 8be8 af95 2de5 8aa0 2de5 a29e e58a ......-...-..... > > 00000010: a02d e58a a02d e5a2 9ee5 8aa0 0a .-...-....... > > Interesting. > I just saw that there are already fixes going on: > Is the fix from Peff helping here ?
Peff's fix successfully sidesteps the problem on my machine.
(main) % git symbolic-ref --short HEAD 测试-? (peff) % $(GIT)/bin-wrappers/git symbolic-ref --short HEAD 测试-加-增加-加-增加
> And what do you see on disk ?
I'm not sure what you mean by "on disk". Do you mean the output of `ls .git/refs/heads/ | xxd` which I posted in [1]?
FWIW: I'm on High Sierra (10.13) using HFS+.
[1]: https://lore.kernel.org/git/CAPig+cQ9f0aW0TcP9A5WrKmYcQsEZvPOiPrgmzsy1frWkHd34w@mail.gmail.com/