grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
From: Andrew Hamilton <adhamilt@gmail.com>
To: grub-devel@gnu.org
Cc: daniel.kiper@oracle.com, savannah@wuthoehle.de,
	Andrew Hamilton <adhamilt@gmail.com>
Subject: [PATCH 1/1] po: Update Translations to Build with Gettext 0.26
Date: Fri, 22 Aug 2025 22:43:17 -0500	[thread overview]
Message-ID: <20250823034317.1509-2-adhamilt@gmail.com> (raw)
In-Reply-To: <20250823034317.1509-1-adhamilt@gmail.com>

Gettext 0.26 validates format strings. In some cases before
the GRUB build process was converting newlines sequences (\n)
to (\<translated character>) which is invalid. Update the impacted
language SED script files to ensure newlines use the correct escape
sequence.

This avoids build errors such as:
de@hebrew.po:8192: 'msgstr' is not a valid Shell printf format string,
unlike 'msgid'. Reason: This escape sequence is invalid.

Fixes: https://savannah.gnu.org/bugs/?67353

Signed-off-by: Andrew Hamilton <adhamilt@gmail.com>
---
 po/arabic.sed   | 2 ++
 po/cyrillic.sed | 2 ++
 po/greek.sed    | 2 ++
 po/hebrew.sed   | 2 ++
 4 files changed, 8 insertions(+)

diff --git a/po/arabic.sed b/po/arabic.sed
index 3fbee7248..50bede0f8 100644
--- a/po/arabic.sed
+++ b/po/arabic.sed
@@ -81,3 +81,5 @@ s,%\([0-9]*\)زو,%\1zu,g
 s,%\([0-9]*\)كس,%\1x,g
 s,%\([0-9]*\)لكس,%\1lx,g
 s,%\([0-9]*\)للكس,%\1llx,g
+
+s,\\ن,\\n,g
diff --git a/po/cyrillic.sed b/po/cyrillic.sed
index 472f09529..d3db38838 100644
--- a/po/cyrillic.sed
+++ b/po/cyrillic.sed
@@ -104,3 +104,5 @@ s,%\([0-9]*\)зу,%\1zu,g
 s,%\([0-9]*\)ѯ,%\1x,g
 s,%\([0-9]*\)лѯ,%\1lx,g
 s,%\([0-9]*\)ллѯ,%\1llx,g
+
+s,\\н,\\n,g
diff --git a/po/greek.sed b/po/greek.sed
index 0e81625fb..1ace5fcd2 100644
--- a/po/greek.sed
+++ b/po/greek.sed
@@ -106,3 +106,5 @@ s,%\([0-9]*\)ζυ,%\1zu,g
 s,%\([0-9]*\)ξ,%\1x,g
 s,%\([0-9]*\)λξ,%\1lx,g
 s,%\([0-9]*\)λλξ,%\1llx,g
+
+s,\\ν,\\n,g
diff --git a/po/hebrew.sed b/po/hebrew.sed
index 33174bbdc..ce59e576e 100644
--- a/po/hebrew.sed
+++ b/po/hebrew.sed
@@ -89,3 +89,5 @@ s,%\([0-9]*\)זוּ,%\1zu,g
 s,%\([0-9]*\)כּס,%\1x,g
 s,%\([0-9]*\)לכּס,%\1lx,g
 s,%\([0-9]*\)ללכּס,%\1llx,g
+
+s,\\נ,\\n,g
-- 
2.39.5


_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

  reply	other threads:[~2025-08-23  3:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-23  3:43 [PATCH 0/1] po: Fix GRUB Build With Gettext 0.26 Andrew Hamilton
2025-08-23  3:43 ` Andrew Hamilton [this message]
2025-08-23  9:14   ` [PATCH 1/1] po: Update Translations to Build with " Vladimir 'phcoder' Serbinenko
2025-08-25 14:36   ` Daniel Kiper via Grub-devel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250823034317.1509-2-adhamilt@gmail.com \
    --to=adhamilt@gmail.com \
    --cc=daniel.kiper@oracle.com \
    --cc=grub-devel@gnu.org \
    --cc=savannah@wuthoehle.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).