Re: bug report: symbolic-ref --short command echos the wrong text while use Chinese language
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 14, 2023, 16:40 UTC
- Message-ID
- <xmqqk00k6w08.fsf@gitster.g>
- In-Reply-To
- <Y+uwW0I0k7urZ3do@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 6 quoted lines
> Oof. So it is some weird locale thing that scanf is doing. I don't even > want to think about what the details could be. ;) > > Since scanf is such a bad and error-prone interface in the first place > (and I'd actually like to put it on the banned list), what about just > parsing manually here?
Me likee.
This will eradicate the only use of sscanf() from the tree; unfortunately there is a topic that adds a new one or two back in flight X-<.