From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57277) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YO9pF-00032J-8o for qemu-devel@nongnu.org; Wed, 18 Feb 2015 13:58:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YO9pA-0006Or-NQ for qemu-devel@nongnu.org; Wed, 18 Feb 2015 13:58:21 -0500 Received: from cloud.peff.net ([50.56.180.127]:44261) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1YO9pA-0006OP-HJ for qemu-devel@nongnu.org; Wed, 18 Feb 2015 13:58:16 -0500 Date: Wed, 18 Feb 2015 13:58:12 -0500 From: Jeff King Message-ID: <20150218185812.GC7257@peff.net> References: <20150205114914.GA10126@stefanha-thinkpad.redhat.com> <54D38B73.4060803@redhat.com> <20150205195758.GC15326@peff.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH] send-email: ask confirmation if given encoding name is very short List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Junio C Hamano Cc: Zhu Guihua , Stefan Hajnoczi , qemu-devel@nongnu.org, tangchen@cn.fujitsu.com, guz.fnst@cn.fujitsu.com, isimatu.yasuaki@jp.fujitsu.com, Geert Uytterhoeven , anshul.makkar@profitbricks.com, chen.fan.fnst@cn.fujitsu.com, imammedo@redhat.com, afaerber@suse.de, git@vger.kernel.org On Mon, Feb 16, 2015 at 02:34:14PM -0800, Junio C Hamano wrote: > Sometimes people respond "y" (or "yes") when asked > this question: > > Which 8bit encoding should I declare [UTF-8]? > > We already have a mechanism to avoid accepting a mistyped e-mail > address (we ask to confirm when the given address lacks "@" in it); > reuse it to trigger the same confirmation when given a very short > answer. As a typical charset name is probably at least 4 chars or > longer (e.g. "UTF8" spelled without the dash, or "Big5"), this would > prevent such a mistake. > > Signed-off-by: Junio C Hamano > --- > > * Will mark to be merged to 'next'. Probably belated review, but this looks good to me. -Peff