From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: UTF-8 characters in commit messages (was: [PATCH] ; Simplify (with-current-buffer (get-buffer =?utf-8?B?4oCmKSDigKYpKQ==?= Date: Fri, 15 Mar 2024 13:32:34 +0200 Message-ID: <86plvv91d9.fsf@gnu.org> References: <20240312002108.472095-1-tim@tim-landscheidt.de> <86sf0t9js8.fsf@gnu.org> <87a5mzkg7h.fsf_-_@vagabond.tim-landscheidt.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13612"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Tim Landscheidt Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Mar 15 12:33:46 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rl5oo-0003IF-2k for ged-emacs-devel@m.gmane-mx.org; Fri, 15 Mar 2024 12:33:46 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rl5ns-0000k8-W2; Fri, 15 Mar 2024 07:32:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rl5nr-0000jq-Pw for emacs-devel@gnu.org; Fri, 15 Mar 2024 07:32:47 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rl5nq-0002Ne-Nx; Fri, 15 Mar 2024 07:32:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=6DihRcYvHAnp7LVB788TqfleXV1IieV4K6QhHJpIBYU=; b=qo8tPtZAkqdH1Wyo5e+C s5lcQzClGSUUwesJDhzTNfVgV738exlJ/TMrY+Fl/9Ac2yd1quYXBRgFXAOTNO2ViXQEtWtz1QDiz sJb0OcezAv9xIg2Ca6n3EQfMGqa2kDkoJrXQOfJ2PN2IGdrP09do57Cacj6/cE+d2ZglPElrTc5Tk gyRJtNxKuiEnHHIeJbmo4QrYIbBA7A30QVoA9+9gYPaQWRH4eItVkFkQGAEKkiYx4kYOMD+xdmfyY 9YzQgGRGFLAJrCOp+f1x8EAy0Cq8QYOaGNJk9aU6pnj9xaashnkrCZs3B30ZkTlQTDuPDOVdX33TP oanZxXye4bHYrw==; In-Reply-To: <87a5mzkg7h.fsf_-_@vagabond.tim-landscheidt.de> (message from Tim Landscheidt on Fri, 15 Mar 2024 09:16:34 +0000) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:317057 Archived-At: > From: Tim Landscheidt > Cc: emacs-devel@gnu.org > Date: Fri, 15 Mar 2024 09:16:34 +0000 > > Eli Zaretskii wrote: > > > […] > > > For the future, please avoid using non-ASCII characters in commit log > > messages. > > I had only looked at CONTRIBUTE's: > > | - Commit messages should contain only printable UTF-8 characters. > > Further down, the test commit-msg performs is described as: > > | - commit log message should include only valid printable ASCII and > | UTF-8 characters; That's not a contradiction: ASCII characters are by definition valid UTF-8 characters. > The GNU Coding Standards are a bit more explicit about this: > > | Sticking to the ASCII character set (plain text, 7-bit > | characters) is preferred in GNU source code comments, text > | documents, and other contexts, unless there is good reason > | to do something else because of the application domain. For > | example, if source code deals with the French Revolutionary > | calendar, it is OK if its literal strings contain accented > | characters in month names like “Floréal”. Also, it is OK > | (but not required) to use non-ASCII characters to represent > | proper names of contributors in change logs (see Change > | Logs). > > Perhaps the first line quoted above could be rephrased à la: > > | - Commit messages should contain only valid printable ASCII > | characters. If necessary, they may contain printable > | UTF-8 characters. IMNSHO, this is simple and obvious rule: don't use non-ASCII unless you must. But since people insist on having every possible rule explicitly codified, I've now modified CONTRIBUTE to say: - Commit messages should contain only printable UTF-8 characters. However, we ask that non-ASCII characters be used only if strictly necessary, not just for aesthetic purposes.