Your message dated Thu, 07 May 2020 08:34:40 +0000
with message-id <[email protected]>
and subject line Bug#862460: fixed in po4a 0.58-1
has caused the Debian Bug report #862460,
regarding po4a-gettextize: Charset "CHARSET" is not a portable encoding name
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
862460: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=862460
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: po4a
Version: 0.47-2
Severity: wishlist

For ASCII-only base text, when generating POT file with po4a-gettextize,
resulting POT file has invalid

"Content-Type: text/plain; charset=CHARSET\n"

Even when iy is specifically called with "-M utf-8".

This doesn't happen if English text has non-ascii sequence.

If called with "-M utf-8", even for ASCII only upstream text, this
should be:

"Content-Type: text/plain; charset=UTF-8\n"

Here is the use case causing trouble:

| po4a-gettextize -M utf-8 --format docbook -m test-ascii.xml | grep charset
| "Content-Type: text/plain; charset=CHARSET\n"
| po4a-gettextize -M utf-8 --format docbook -m test-ascii.xml | msgcat 
--no-location -o test-ascii.pot -
| <stdin>: warning: Charset "CHARSET" is not a portable encoding name.
|                   Message conversion to user's charset might not work.
| msgcat: present charset "CHARSET" is not a portable encoding name
| Makefile:4: recipe for target 'test-ascii.pot' failed
| make: [test-ascii.pot] Error 1 (ignored)
| po4a-gettextize -M utf-8 --format docbook -m test-utf8.xml | grep charset
| "Content-Type: text/plain; charset=UTF-8\n"
| po4a-gettextize -M utf-8 --format docbook -m test-utf8.xml | msgcat 
--no-location -o test-utf8.pot -

Test code is attached.

As I read po4a-gettextize line after 236
| # Parse master file forcing conversion to utf if it's not in ascii
| foreach my $file (@masterfile) {
|     $mastertt->read($file);
| }
| $mastertt->{TT}{utf_mode} = 1;
| if ($mastertt->{TT}{ascii_input}) {
|     $mastertt->detected_charset('ascii');
| } elsif (defined($mastchar)) {
|     $mastertt->detected_charset($mastchar);
|     $mastertt->{TT}{po_in}->set_charset($mastchar);
| }
| $mastertt->parse;


This is suspicious.

At least when "-M utf-8" is specified (I guess if $master == 'utf-8', it
should do something like

|     $mastertt->detected_charset('utf-8');
|     $mastertt->{TT}{po_in}->set_charset('utf-8');
 
even for ASCII case.  ASCII is UTF-8!

Osamu
-- System Information:
Debian Release: 9.0
  APT prefers testing-proposed-updates
  APT policy: (500, 'testing-proposed-updates'), (500, 'testing'), (98, 
'experimental'), (98, 'unstable')
Architecture: amd64
 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.10.0-rc6-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages po4a depends on:
ii  gettext                           0.19.8.1-2
ii  libsgmls-perl                     1.03ii-36
ii  opensp                            1.5.2-13+b1
ii  perl                              5.24.1-2
ii  perl-modules-5.24 [perl-modules]  5.24.1-2

Versions of packages po4a recommends:
ii  liblocale-gettext-perl     1.07-3+b1
ii  libterm-readkey-perl       2.37-1
ii  libtext-wrapi18n-perl      0.06-7.1
ii  libunicode-linebreak-perl  0.0.20160702-1+b1

po4a suggests no packages.

-- no debconf information

Attachment: testpo4a.tar.gz
Description: application/gzip


--- End Message ---
--- Begin Message ---
Source: po4a
Source-Version: 0.58-1
Done: [email protected] (Dr. Tobias Quathamer)

We believe that the bug you reported is fixed in the latest version of
po4a, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Dr. Tobias Quathamer <[email protected]> (supplier of updated po4a package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Thu, 07 May 2020 10:14:38 +0200
Source: po4a
Architecture: source
Version: 0.58-1
Distribution: unstable
Urgency: medium
Maintainer: Martin Quinson <[email protected]>
Changed-By: Dr. Tobias Quathamer <[email protected]>
Closes: 602387 823189 862460
Changes:
 po4a (0.58-1) unstable; urgency=medium
 .
   * New upstream version 0.58
     - Do not touch source dir when --destdir is provided (Closes: #602387)
     - Add support for addendum path in po4a_paths (Closes: #823189)
     - Use UTF-8 by default (the 20th century is over)
       po4a used to prefer ascii unless it proved impossible. But the
       underlying detection would fail, possibly for document containing
       UTF-8 chars composed on printable ascii chars only. (Closes: #862460)
     - Add new patch to fix FTBFS.
       Cherry-picked from upstream commit 5db0060.
   * Update d/copyright
   * d/copyright: Remove unneeded license paragraph for GPL-3.0+
   * Use debhelper v13
Checksums-Sha1:
 c63c6100e1250cda034715d43d442a15aae10dfb 2112 po4a_0.58-1.dsc
 259f2a3fc84d4e787232feb694211e92edc9087a 2922494 po4a_0.58.orig.tar.gz
 93a71a790801c2a2d348f6989e34192e11a1054f 12952 po4a_0.58-1.debian.tar.xz
 77cf2972b1c4dcee9d09ae83dfb3b98cd64252d3 7181 po4a_0.58-1_amd64.buildinfo
Checksums-Sha256:
 7297c2ad51582c3c36f77e2f3d9584b7a9bb37200367f5cc9651c2d8c4a9aff2 2112 
po4a_0.58-1.dsc
 d84f2e52d61f8f63ea7822e82aace91d1401f3a8bf9a01536fa684326dbd8521 2922494 
po4a_0.58.orig.tar.gz
 7f4adfe3c4840730f5c46edfdab6ab20c2de35468775e2fccecf46426c935a73 12952 
po4a_0.58-1.debian.tar.xz
 82e744c6859f3f0a6ca00c7a0f2a380e7a7fb200453bfb4282e963ab4a61a667 7181 
po4a_0.58-1_amd64.buildinfo
Files:
 2b1cea990cedc2d6f8e26deb336a2395 2112 text optional po4a_0.58-1.dsc
 4482e4c9443d45d05cc3cae111995174 2922494 text optional po4a_0.58.orig.tar.gz
 18fa06383b1ff2f138905fd643952b11 12952 text optional po4a_0.58-1.debian.tar.xz
 d0e9040e153612d50e23b49e1a1b79dd 7181 text optional po4a_0.58-1_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEE0cuPObxd7STF0seMEwLx8Dbr6xkFAl6zxHIACgkQEwLx8Dbr
6xm+/w//YGSvzlSVvXuFcxXXkWeV5XVzoac9gxZUzuMU3oySwne5gLjut/hSMFdt
enCOb7Y2puB7kcvPf7SLKvA/6bItGJvIjqucOk1QJv26cI0VnNzfQmeYhH0qbGSa
ax/ibiMnIAoLkHQi2/E9XFhHYMncgAQcOEygbfDZ/an1zFXVcvUs51n2liGtNhsk
VAYGh+Hq0Kxa09XMTtfp5eSJ5arxx50Yr0o7zTkE4p2hoMsk2zTe/Ek6RJ3zjwMI
Wx+g4a9d9mEP72sVwo6Niw7z3FKxZLLsrdu8jMw42Ep9v3/zxFfeeVgeLPQkGRju
PfQGafwAb5hxZVC8LLe6Smp1GDtAVrnJw8AJOXQBDyED/QAL8CwrrUg/ddhSUfwF
NMJ21pYyXZHaJ49OPfPYbb2q+0NpdJigIdhJZgPqHIOb+GyhDZjMI0MyQX3EsLVL
uyX6IqD8gDgjFqNCo1z9uNyxP32neYVn409KEDD398GNH7HliI6BYU18WzOnin2A
LRWJ7o9F5aKD8JdsAHXQaDin2JEVwQdoRtIYTp4XsHZL04Ox9Bm+HttS7dunpsGc
NpUzZZLpDW/iVow5jsJzClcu6CPDM5e0LDrAiDSa1GlVtTNSXeouLTq+eBoEvMlk
lUA3Jn4Lus9BWLS6oIAykl2m72RYt9n2edPOOpn4cts4tod7enE=
=rrwh
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to