From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 97943 invoked by alias); 8 Sep 2019 09:56:22 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 97929 invoked by uid 89); 8 Sep 2019 09:56:22 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-3.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.1 spammy=translated, sprintf, H*i:sk:AM6PR10, H*f:sk:AM6PR10 X-HELO: mail-out.m-online.net Received: from mail-out.m-online.net (HELO mail-out.m-online.net) (212.18.0.9) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 08 Sep 2019 09:56:20 +0000 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 46R6BV1QR9z1rJ78; Sun, 8 Sep 2019 11:56:17 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 46R6BT5Qt4z1r5fX; Sun, 8 Sep 2019 11:56:17 +0200 (CEST) Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id UCRJ2gpr8ivP; Sun, 8 Sep 2019 11:56:17 +0200 (CEST) Received: from hase.home (ppp-46-244-171-86.dynamic.mnet-online.de [46.244.171.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Sun, 8 Sep 2019 11:56:17 +0200 (CEST) Received: by hase.home (Postfix, from userid 1000) id C945F101C79; Sun, 8 Sep 2019 11:56:15 +0200 (CEST) From: Andreas Schwab To: Bernd Edlinger Cc: Joseph Myers , "gcc\@gcc.gnu.org" Subject: Re: Translated strings with sprintf %-directives References: X-Yow: PUNK ROCK!! DISCO DUCK!! BIRTH CONTROL!! Date: Sun, 08 Sep 2019 09:56:00 -0000 In-Reply-To: (Bernd Edlinger's message of "Sun, 8 Sep 2019 09:38:06 +0000") Message-ID: <875zm3nmbk.fsf@hase.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2019-09/txt/msg00053.txt.bz2 On Sep 08 2019, Bernd Edlinger wrote: > Shouldn't there be an automatic check that the %-directives are given in > the original and the translated message are exactly the same? There is, but only if the original message is marked as a format string in the first place. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."