From patchwork Sun Jul 12 16:50:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "brian m. carlson" X-Patchwork-Id: 11658359 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 031321392 for ; Sun, 12 Jul 2020 16:50:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CF4402068F for ; Sun, 12 Jul 2020 16:50:24 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (3072-bit key) header.d=crustytoothpaste.net header.i=@crustytoothpaste.net header.b="QIX3Pop4" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729002AbgGLQuX (ORCPT ); Sun, 12 Jul 2020 12:50:23 -0400 Received: from injection.crustytoothpaste.net ([192.241.140.119]:40550 "EHLO injection.crustytoothpaste.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728844AbgGLQuX (ORCPT ); Sun, 12 Jul 2020 12:50:23 -0400 Received: from camp.crustytoothpaste.net (unknown [IPv6:2001:470:b978:101:b610:a2f0:36c1:12e3]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by injection.crustytoothpaste.net (Postfix) with ESMTPSA id 8493460479; Sun, 12 Jul 2020 16:50:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=crustytoothpaste.net; s=default; t=1594572621; bh=9n3NrHRpVBIl62Dgdy3eXD91/9cgTaYQs2mK9ML7CLE=; h=From:To:Cc:Subject:Date:Content-Type:From:Reply-To:Subject:Date: To:CC:Resent-Date:Resent-From:Resent-To:Resent-Cc:In-Reply-To: References:Content-Type:Content-Disposition; b=QIX3Pop4uwjSM4X+8LBI9yqx0Z5HQcXOD56qXM2jQwowAgv7kLwGNXy3bqNXVffvJ oqmiygU8wsnnDb6XDc8fmozh6HVL6HXn3kz4pWCSq+e7bIGF9lsyFHonou/q3JV9cz 0Wln+TN6AY5T9XR3FrWdB+S7BcS3g05CkbBgK8NhxbgOxdlwO6UeVQSA24xM+7ISao HC+NbvyOLsTCO+TnEW2DHCMRI9tF6NILU7S3j2HV9LtfWAjFTmcHIHXax578fLoQ5a kvCVYNy5+tV1EZkHYvH3qAb6QoEGcSbfB+PUEnMDIxK38IS7q6BJWOp9Ba7+8flt45 hkMED/2op1Rs8R/JLZ4Y5S0Bz9mhQukh/zoaF+Xg+989F5BFq+uug11Ff1ijBf7w9s XqXp30kl5MM/DIplsS3Yla206in82CNHRWZWjjDe4PHSziQ8RSOb7/PAqN1I3QeRot qOjDWSSuzAGVsrk7I9L59ioWfXWUilrQ+IsuqX4+guOIaV2klT9 From: "brian m. carlson" To: Cc: Junio C Hamano , =?utf-8?q?Matthias_R=C3=BCster?= Subject: [PATCH] bundle: improve message when unknown hash algorithm detected Date: Sun, 12 Jul 2020 16:50:05 +0000 Message-Id: <20200712165005.705979-1-sandals@crustytoothpaste.net> X-Mailer: git-send-email 2.27.0.353.gb9a2d1a020 MIME-Version: 1.0 Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org The current code states "unknown hash algorithm length". This is slightly confusing, and moreover, we've gotten feedback that it's hard to translate into other languages. Since the case is that we cannot detect the hash algorithm, let's just say that. This is clearer and more direct, reflects the intent of the code (which calls the function detect_hash_algo just a few lines above), and will be easier to translate. Suggested-by: Matthias RĂ¼ster Signed-off-by: brian m. carlson --- Matthias contacted me privately about this message and I thought since we're still in the RC period, it would make sense to include this in to help translators and those who aren't native speakers. bundle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundle.c b/bundle.c index 2a0d744d3f..69c807bda9 100644 --- a/bundle.c +++ b/bundle.c @@ -66,7 +66,7 @@ static int parse_bundle_header(int fd, struct bundle_header *header, if (!header->hash_algo) { header->hash_algo = detect_hash_algo(&buf); if (!header->hash_algo) { - error(_("unknown hash algorithm length")); + error(_("unable to detect hash algorithm")); status = -1; break; }