From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS53758 23.128.96.0/24 X-Spam-Status: No, score=-4.1 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by dcvr.yhbt.net (Postfix) with ESMTP id 894D21F5AE for ; Thu, 27 May 2021 20:51:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233044AbhE0Uwi (ORCPT ); Thu, 27 May 2021 16:52:38 -0400 Received: from shell1.rawbw.com ([198.144.192.42]:57369 "EHLO shell1.rawbw.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229918AbhE0Uwg (ORCPT ); Thu, 27 May 2021 16:52:36 -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 14RKoxBo029844 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Thu, 27 May 2021 13:50:59 -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 Subject: Re: [BUG REPORT] File names that contain UTF8 characters are unnecessarily escaped in 'git status .' messages To: Jeff King , =?UTF-8?Q?Torsten_B=c3=b6gershausen?= Cc: Junio C Hamano , Git Mailing List References: <6318ccec-ec96-91a8-fd65-85daf4a9a22b@rawbw.com> <20210527045628.uvesihyhtqrfyfae@tb-raspi4> From: Yuri Message-ID: <4dd22f16-72f0-a28a-8be0-aec622acf0d3@rawbw.com> Date: Thu, 27 May 2021 13:50:58 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.10.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org It's not clear from the conversation if git reads terminal capabilities at all. But the default behavior, without any options set, should be to read terminal capabilities, and write non-ASCII characters verbatim when terminal supports this and escape them when terminal doesn't support them. Current default behavior appears to be to always escape non-ASCII characters. Then options can change this basic behavior according to user's choice. Yuri