[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Fwd: Bug#1077059: gettext: xgettext complains about missing charset head
From: |
Santiago Vila |
Subject: |
Fwd: Bug#1077059: gettext: xgettext complains about missing charset header when using the exclude option |
Date: |
Thu, 25 Jul 2024 18:58:29 +0200 |
User-agent: |
Mozilla Thunderbird |
Hello.
I received the following report from the Debian BTS.
-------- Mensaje reenviado --------
Asunto: Bug#1077059: gettext: xgettext complains about missing charset header
when using the exclude option
Fecha: Thu, 25 Jul 2024 18:44:28 +0200
De: Nicolas Peugnet <n.peugnet@free.fr>
Para: Debian Bug Tracking System <submit@bugs.debian.org>
Package: gettext
Version: 0.22.5-1
Severity: normal
Dear Maintainer,
After upgrading gettext to the latest version from testing (0.22.5-1) I
I can not use xgettext to extract messages from a .pot files in
conjuction with the exclude option. xgettext complains about a missing
header entry with charset specification, but is is there, and it worked
with the previous version from Debian stable (0.21-12).
Here is a demonstration of the problem:
$ ls
exclude.po messages.po
$ head -n30 *
==> exclude.po <==
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
msgid "API"
msgstr ""
msgid "Atom"
msgstr ""
msgid "BibTeX"
msgstr ""
msgid "CLI"
msgstr ""
msgid "CalDAV"
msgstr ""
msgid "CardDAV"
msgstr ""
==> messages.pot <==
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2022-2024, Membres de CLUB1
# This file is distributed under the same license as the CLUB1 package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CLUB1 main\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-07-25 18:30+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: ../../_templates/404.html:2
#: ../../_templates/404.html:5
msgid "404 Non trouvé"
msgstr ""
#: ../../_templates/404.html:6
msgid "La page demandée n'existe pas ou plus, elle a peut-être été renommée."
msgstr ""
#: ../../_templates/breadcrumbs.html:9
msgid "Traduire sur Weblate"
msgstr ""
$ xgettext -x exclude.po messages.pot
Warning: program compiled against libxml 212 using older 209
xgettext: messages.pot: input file doesn't contain a header entry with a
charset specification
I tried to compile the upstream project from source in order to bisect
the issue, but I had to much problems compiling the example, which I
didn't even need.
It should probably be forwarded upstream.
[...]
- Fwd: Bug#1077059: gettext: xgettext complains about missing charset header when using the exclude option,
Santiago Vila <=