From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 552A9C47082 for ; Wed, 26 May 2021 22:47:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 32E8E613D2 for ; Wed, 26 May 2021 22:47:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234628AbhEZWsy (ORCPT ); Wed, 26 May 2021 18:48:54 -0400 Received: from shell1.rawbw.com ([198.144.192.42]:62697 "EHLO shell1.rawbw.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231470AbhEZWst (ORCPT ); Wed, 26 May 2021 18:48:49 -0400 Received: from yv.noip.me (c-73-189-35-76.hsd1.ca.comcast.net [73.189.35.76]) (authenticated bits=0) by shell1.rawbw.com (8.15.1/8.15.1) with ESMTPSA id 14QMlGeQ017902 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Wed, 26 May 2021 15:47:16 -0700 (PDT) (envelope-from yuri@rawbw.com) X-Authentication-Warning: shell1.rawbw.com: Host c-73-189-35-76.hsd1.ca.comcast.net [73.189.35.76] claimed to be yv.noip.me To: Git Mailing List From: Yuri Subject: [BUG REPORT] File names that contain UTF8 characters are unnecessarily escaped in 'git status .' messages Message-ID: Date: Wed, 26 May 2021 15:47:15 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.10.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org I have the file that contains the "∞" character in its name. When this file was modified, 'git status .' showed it as: >    modified:   "file-name-\342\210\236.ext" It replaced the UTF8 character with its byte representation, and put the file name in quotes. git should show such files without escaping when the terminal is able to show UTF8 characters because escaping decreases readability. $ env | grep TERM COLORTERM=truecolor TERM=xterm-256color $ env | grep LANG LANG=C.UTF-8 $ env | grep CTYPE LC_CTYPE=en_US.UTF-8 Thanks, Yuri