Re: [BUG REPORT] File names that contain UTF8 characters are unnecessarily escaped in 'git status .' messages
- From
- Yuri <yuri@rawbw.com>
- Date
- May 30, 2021, 21:55 UTC
- Message-ID
- <481fbc88-3e7d-6b00-0997-1a80b87a637d@rawbw.com>
- In-Reply-To
- <YLQHPu0bIy4qHEWP@coredump.intra.peff.net>
On 5/30/21 2:44 PM, Jeff King wrote:
Show 5 quoted lines
> Yeah, I'm not sure how such a check would be done. On most Linux systems > I've seen, $LANG will mention "en_US.UTF-8" or similar. But I've no idea > how portable that convention is, not to mention that people may have > more complex setups anyway (e.g., not setting $LANG but setting some of > LC_*).
When 'locale charmap' prints 'UTF-8' the terminal can be assumed to be able to accept UTF-8 characters.
'locale charmap', I think, determines this only based on environment variables.
Yuri