[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] set locale to avoid xgettext error
From: |
Matteo Croce |
Subject: |
[PATCH] set locale to avoid xgettext error |
Date: |
Tue, 22 Oct 2024 13:05:48 +0200 |
From: Matteo Croce <teknoraver@meta.com>
The source file src/checkpoint.c contains a comment with a non ASCII
character, i.e. the Spanish word "comprobaciĆ³n".
This makes xgettext fail with the following error:
/usr/bin/xgettext: Non-ASCII comment at or before src/checkpoint.c:251.
Please specify the source encoding through --from-code.
make[3]: *** [Makefile:307: tar.pot-update] Error 1
Fix this by specifying UTF-8 as source code locale.
---
bootstrap.conf | 1 +
1 file changed, 1 insertion(+)
diff --git a/bootstrap.conf b/bootstrap.conf
index fb75422c..954de93f 100644
--- a/bootstrap.conf
+++ b/bootstrap.conf
@@ -41,6 +41,7 @@ XGETTEXT_OPTIONS=$XGETTEXT_OPTIONS'\\\
--flag=__argp_failure:4:c-format\\\
--flag=argp_fmtstream_printf:2:c-format\\\
--flag=__argp_fmtstream_printf:2:c-format\\\
+ --from-code=utf-8\\\
'
# Gettext supplies these files, but we don't need them since
--
2.47.0
- [PATCH] set locale to avoid xgettext error,
Matteo Croce <=