Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1j8rID-00076K-VF for mharc-grub-devel@gnu.org; Mon, 02 Mar 2020 15:03:57 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33872) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j8rIB-00073P-Q5 for grub-devel@gnu.org; Mon, 02 Mar 2020 15:03:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j8rIA-00022C-1C for grub-devel@gnu.org; Mon, 02 Mar 2020 15:03:54 -0500 Received: from mail.gentoo.org ([2001:470:ea4a:1:5054:ff:fec7:86e4]:44525 helo=smtp.gentoo.org) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j8rI9-00020p-SH for grub-devel@gnu.org; Mon, 02 Mar 2020 15:03:53 -0500 Received: from naomi.gilbertsystems.net (d14-69-92-185.try.wideopenwest.com [69.14.185.92]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: floppym) by smtp.gentoo.org (Postfix) with ESMTPSA id 4480F34F4AD; Mon, 2 Mar 2020 20:03:45 +0000 (UTC) From: Mike Gilbert To: grub-devel@gnu.org Cc: Mike Gilbert Subject: [PATCH] po: fix replacement of %m in sed programs Date: Mon, 2 Mar 2020 15:03:32 -0500 Message-Id: <20200302200332.1746058-1-floppym@gentoo.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2001:470:ea4a:1:5054:ff:fec7:86e4 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Mar 2020 20:03:56 -0000 When running make dist, I hit this error: rm -f en@arabic.gmo && /usr/bin/gmsgfmt -c --statistics --verbose -o en@a= rabic.gmo en@arabic.po en@arabic.po:5312: 'msgstr' is not a valid C format string, unlike 'msgid= '. Reason: The character that terminates the directive number 3 is not a val= id conversion specifier. /usr/bin/gmsgfmt: found 1 fatal error This was caused by "%m" being replaced with foreign Unicode characters. For example: msgid "cannot rename the file %s to %s: %m" msgstr "=EF=BA=B9=EF=BA=8E=EF=BB=A8=EF=BB=A7=EF=BB=AE=EF=BA=97 =EF=BA=AE=EF= =BB=8C=EF=BB=A7=EF=BA=8E=EF=BB=A4=EF=BB=8B =EF=BA=96=EF=BB=AC=EF=BB=8B =EF= =BB=92=D6=B4=EF=BB=B4=EF=BB=A0=EF=BB=8B %s =EF=BA=95=EF=BB=AD %s: %=EF=BB= =A1" Mimic the workaround used for "%s" by reversing the replacement of "%m" a= t the end of the sed programs. Signed-off-by: Mike Gilbert --- po/arabic.sed | 1 + po/cyrillic.sed | 1 + po/greek.sed | 1 + po/hebrew.sed | 1 + 4 files changed, 4 insertions(+) diff --git a/po/arabic.sed b/po/arabic.sed index b5b5db661..21dc8b6db 100644 --- a/po/arabic.sed +++ b/po/arabic.sed @@ -73,6 +73,7 @@ s,%\([0-9]*\)=D9=84=D8=AF,%\1ld,g s,%\([0-9]*\)=D9=84=D9=84=D8=AF,%\1lld,g =20 s,%\([0-9\.\*]*\)=D8=B3,%\1s,g +s,%\([0-9\.\*]*\)=D9=85,%\1m,g s,%\([0-9]*\)=D9=84=D9=88,%\1lu,g s,%\([0-9]*\)=D9=88,%\1u,g s,%\([0-9]*\)=D9=84=D9=84=D9=88,%\1llu,g diff --git a/po/cyrillic.sed b/po/cyrillic.sed index ffad0ed8c..2e3e6655d 100644 --- a/po/cyrillic.sed +++ b/po/cyrillic.sed @@ -96,6 +96,7 @@ s,%\([0-9]*\)=D0=BB=D0=B4,%\1ld,g s,%\([0-9]*\)=D0=BB=D0=BB=D0=B4,%\1lld,g =20 s,%\([0-9\.\*]*\)=D1=81,%\1s,g +s,%\([0-9\.\*]*\)=D0=BC,%\1m,g s,%\([0-9]*\)=D0=BB=D1=83,%\1lu,g s,%\([0-9]*\)=D1=83,%\1u,g s,%\([0-9]*\)=D0=BB=D0=BB=D1=83,%\1llu,g diff --git a/po/greek.sed b/po/greek.sed index 93556c386..3543f6aac 100644 --- a/po/greek.sed +++ b/po/greek.sed @@ -98,6 +98,7 @@ s,%\([0-9]*\)=CE=BB=CE=B4,%\1ld,g s,%\([0-9]*\)=CE=BB=CE=BB=CE=B4,%\1lld,g =20 s,%\([0-9\.\*]*\)=CF=83,%\1s,g +s,%\([0-9\.\*]*\)=CE=BC,%\1m,g s,%\([0-9]*\)=CE=BB=CF=85,%\1lu,g s,%\([0-9]*\)=CF=85,%\1u,g s,%\([0-9]*\)=CE=BB=CE=BB=CF=85,%\1llu,g diff --git a/po/hebrew.sed b/po/hebrew.sed index a47bc6a28..9210014bc 100644 --- a/po/hebrew.sed +++ b/po/hebrew.sed @@ -81,6 +81,7 @@ s,%\([0-9]*\)=D7=9C=D7=93,%\1ld,g s,%\([0-9]*\)=D7=9C=D7=9C=D7=93,%\1lld,g =20 s,%\([0-9\.\*]*\)=D7=A9,%\1s,g +s,%\([0-9\.\*]*\)=D7=9E,%\1m,g s,%\([0-9]*\)=D7=9C=D7=95=D6=BC,%\1lu,g s,%\([0-9]*\)=D7=95=D6=BC,%\1u,g s,%\([0-9]*\)=D7=9C=D7=9C=D7=95=D6=BC,%\1llu,g --=20 2.25.1