debconf-updatepo fails to setup translations due to crash.c, livepatch.c and livepatch-tray.c
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
update-notifier (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Steps to reproduce on Focal system:
$ git clone -b master https:/
Cloning into 'update-
...
$ debconf-updatepo
ERROR: xgettext failed to generate PO template file because there is non-ASCII
string marked for translation. Please make sure that all strings marked
for translation are in uniform encoding (say UTF-8), then *prepend* the
following line to POTFILES.in and rerun intltool-update:
debconf-updatepo succeeds when applying the following diff:
diff --git a/po/POTFILES.in b/po/POTFILES.in
index de4ee8a..f5dd85f 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -7,11 +7,8 @@
data/apt_check.py
data/apt-
data/cddistupg
-src/crash.c
src/cdroms.c
src/hooks.c
-src/livepatch.c
-src/livepatch-
src/update.c
src/update-
[type: gettext/
csmith@
csmith@
0
Changed in update-notifier (Ubuntu): | |
status: | New → Incomplete |
Update: turns out livepatch.c livepatch-tray.c, crash.c and the untranslated system-crash.c all attempt to translate the horizontal ellipsis unicode char, so we need to follow the error message instructions and prepend the [encoding: UTF-8] to the POTFILES.in line.