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 <[email protected]>\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.

-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (600, 'testing'), (500, 'stable-security'), (500, 'stable'), 
(200, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.9.9-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages gettext depends on:
ii  gettext-base   0.22.5-1
ii  libc6          2.39-4
ii  libgomp1       14-20240330-1
ii  libunistring5  1.2-1
ii  libxml2        2.9.14+dfsg-1.3+b3

Versions of packages gettext recommends:
ii  curl  8.8.0-4
ii  lynx  2.9.2-1
ii  wget  1.24.5-1

Versions of packages gettext suggests:
ii  autopoint         0.22.5-1
pn  gettext-doc       <none>
pn  libasprintf-dev   <none>
pn  libgettextpo-dev  <none>

-- no debconf information

Reply via email to