From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mathieu Lirzin Subject: guix/scripts/refresh.scm:331:14: warning: non-literal format string. Date: Mon, 09 Nov 2015 12:30:03 +0100 Message-ID: <87611bv29w.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42940) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zvqg1-0002qs-R6 for guix-devel@gnu.org; Mon, 09 Nov 2015 12:56:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zvqg1-0002dG-19 for guix-devel@gnu.org; Mon, 09 Nov 2015 12:56:21 -0500 List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org Cc: Eric Bavier Hi, I haved noticed a warning when building Guix (master) with Guile 2.0.11: guix/scripts/refresh.scm:331:14: warning: non-literal format string wrote `guix/scripts/refresh.go' Here is the snippet of the code producing this warning: --8<---------------cut here---------------start------------->8--- (format (current-output-port) (N_ (N_ "A single dependent package: ~2*~{~a~}~%" "Building the following package would ensure ~d \ dependent packages are rebuilt; ~*~{~a~^ ~}~%" total-dependents) "Building the following ~d packages would ensure ~d \ dependent packages are rebuilt: ~{~a~^ ~}~%" (length rebuilds)) (length rebuilds) total-dependents rebuilds) --8<---------------cut here---------------end--------------->8--- I'm not sure how Gettext plural forms should be used so: - If the code is correct, I think we should provide a comment announcing the warning and explaining why this is OK. - else, how can we fix it? TIA, -- Mathieu Lirzin