Your message dated Sun, 01 Oct 2017 16:39:35 +0000
with message-id <[email protected]>
and subject line Bug#869240: fixed in ikiwiki 3.20171001
has caused the Debian Bug report #869240,
regarding ikiwiki: decoding of strftime() result is not needed
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.)


-- 
869240: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=869240
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: ikiwiki
Version: 3.20170111
Severity: important
Tags: patch l10n

I am using ru_RU.UTF-8 locale. Ikiwiki build is failed with the
following error:

> Cannot decode string with wide characters at 
> /usr/lib/x86_64-linux-gnu/perl/5.24/Encode.pm line 202.

I think that the real problem is double-decoding of strftime() result
that is already a proper widestring. See IkiWiki.pm at line 1300:

> Encode::decode($strftime_encoding, POSIX::strftime(@_))

The obvious fix:

--- a/IkiWiki.pm 2017-01-11 00:00:00.000000000 +0300
+++ b/IkiWiki.pm 2017-07-21 23:47:24.017845918 +0300
@@ -1286,19 +1286,7 @@
                $format=$config{timeformat};
        }
 
-       return strftime_utf8($format, localtime($time));
-}
-
-my $strftime_encoding;
-sub strftime_utf8 {
-       # strftime doesn't know about encodings, so make sure
-       # its output is properly treated as utf8.
-       # Note that this does not handle utf-8 in the format string.
-       ($strftime_encoding) = POSIX::setlocale(&POSIX::LC_TIME) =~ m#\.([^@]+)#
-               unless defined $strftime_encoding;
-       $strftime_encoding
-               ? Encode::decode($strftime_encoding, POSIX::strftime(@_))
-               : POSIX::strftime(@_);
+       return POSIX::strftime($format, localtime($time));
 }
 
 sub date_3339 ($) {


-- System Information:
Debian Release: 9.0
  APT prefers stable
  APT policy: (990, 'stable'), (650, 'testing'), (500, 'oldstable-updates'), 
(500, 'oldstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8), 
LANGUAGE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages ikiwiki depends on:
ii  libhtml-parser-perl             3.72-3
ii  libhtml-scrubber-perl           0.15-1
ii  libhtml-template-perl           2.95-2
ii  libjson-perl                    2.90-1
ii  libtext-markdown-discount-perl  0.11-1+b3
ii  liburi-perl                     1.71-1
ii  libyaml-libyaml-perl            0.63-2
ii  perl                            5.24.1-3

Versions of packages ikiwiki recommends:
ii  gcc [c-compiler]             4:6.3.0-4
ii  gcc-6 [c-compiler]           6.3.0-18
ii  git [git-core]               1:2.11.0-3
pn  libauthen-passphrase-perl    <none>
ii  libc6-dev [libc-dev]         2.24-11+deb9u1
ii  libcgi-formbuilder-perl      3.10-1
ii  libcgi-pm-perl               4.35-1
ii  libcgi-session-perl          4.48-3
ii  libcrypt-ssleay-perl         0.73.04-2
pn  libgravatar-url-perl         <none>
pn  liblwpx-paranoidagent-perl   <none>
pn  libmail-sendmail-perl        <none>
pn  libnet-openid-consumer-perl  <none>
pn  librpc-xml-perl              <none>
ii  libterm-readline-gnu-perl    1.35-1
ii  libtimedate-perl             2.3000-2
ii  libxml-simple-perl           2.22-1
ii  mercurial                    4.0-1
ii  subversion                   1.9.5-1

Versions of packages ikiwiki suggests:
ii  dvipng                             1.14-2+b3
ii  file                               1:5.30-1
ii  gettext                            0.19.8.1-2
ii  ghostscript                        9.20~dfsg-3.2
ii  graphviz                           2.38.0-17
pn  libfile-mimeinfo-perl              <none>
ii  libhighlight-perl                  3.18-3+b5
ii  libhtml-tree-perl                  5.03-2
ii  libimage-magick-perl [perlmagick]  8:6.9.7.4+dfsg-11+deb9u1
ii  liblocale-gettext-perl             1.07-3+b1
pn  libmagickcore-extra                <none>
pn  libmailtools-perl                  <none>
pn  libnet-amazon-s3-perl              <none>
pn  libnet-inet6glue-perl              <none>
pn  libsearch-xapian-perl              <none>
ii  libsort-naturally-perl             1.03-1
pn  libsparkline-php                   <none>
ii  libtext-csv-perl                   1.33-2
ii  libtext-multimarkdown-perl         1.000035-1
ii  libtext-textile-perl               2.13-2
pn  libtext-typography-perl            <none>
pn  libtext-wikicreole-perl            <none>
ii  libtext-wikiformat-perl            0.79-1
pn  libxml-feed-perl                   <none>
ii  libxml-writer-perl                 0.625-1
pn  po4a                               <none>
pn  polygen                            <none>
ii  python                             2.7.13-2
ii  python-docutils                    0.13.1+dfsg-2
ii  texlive                            2016.20170123-5
ii  tidy                               1:5.2.0-2
pn  viewvc | gitweb | viewcvs          <none>
pn  xapian-omega                       <none>

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: ikiwiki
Source-Version: 3.20171001

We believe that the bug you reported is fixed in the latest version of
ikiwiki, 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.
Simon McVittie <[email protected]> (supplier of updated ikiwiki 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: Sun, 01 Oct 2017 16:32:01 +0100
Source: ikiwiki
Binary: ikiwiki
Architecture: source
Version: 3.20171001
Distribution: unstable
Urgency: medium
Maintainer: Simon McVittie <[email protected]>
Changed-By: Simon McVittie <[email protected]>
Description:
 ikiwiki    - wiki compiler
Closes: 869240
Changes:
 ikiwiki (3.20171001) unstable; urgency=medium
 .
   [ Joey Hess ]
   * htmlscrubber: Add support for the video tag's loop and muted
     attributes. Those were not in the original html5 spec, but have been
     added in the whatwg html living standard and have wide browser support.
   * emailauth, passwordauth: Avoid leaving cgisess_* files in the
     system temp directory.
 .
   [ Simon McVittie ]
   * core: Don't decode the result of strftime if it is already tagged as
     UTF-8, as it might be since Perl >= 5.21.1. (Closes: #869240)
   * img: Strip metadata from resized images when the deterministic config
     option is set. Thanks, intrigeri
   * receive: Avoid asprintf() in IkiWiki::Receive, to avoid implicit
     declaration, potential misbehaviour on 64-bit platforms, and lack
     of portability to non-GNU platforms
   * t: Add a regression test for untrusted git push
   * receive: Fix untrusted git push with git (>= 2.11) by passing through
     the necessary environment variables to make the quarantine area work
   * debian: Declare compliance with Debian Policy 4.1.1
 .
   [ Amitai Schleier ]
   * l10n: Fix the build with po4a 0.52, by ensuring that msgstr ends
     with a newline if and only if msgid does
Checksums-Sha1:
 96f7b5264bec3d9ab8dd891bb94af8abb75dc3eb 2215 ikiwiki_3.20171001.dsc
 9a9ca402e38abed89449609ddfc988ce3c60b316 2638780 ikiwiki_3.20171001.tar.xz
 5fc1fe3fc60bc2395f296f891581a182f7254000 4977 
ikiwiki_3.20171001_source.buildinfo
Checksums-Sha256:
 de1ff014c8ef6ed5949598de099bf3691b89467559aece72d55ab57f69627b62 2215 
ikiwiki_3.20171001.dsc
 a3bdeaf2f129d38ae6ee55c73deaed40623e05ccfb5f692bde8a6c7b4e021966 2638780 
ikiwiki_3.20171001.tar.xz
 536eb2c7cb526e7e8337dc0c8161afe7620f89609dd2cac874fe066f0df61959 4977 
ikiwiki_3.20171001_source.buildinfo
Files:
 320e6138949aae7b66558a6d51f4485a 2215 web optional ikiwiki_3.20171001.dsc
 e2a3b6b015ba94245a53e8fa507338a5 2638780 web optional ikiwiki_3.20171001.tar.xz
 5be1028c14c1ddc959d6da05a1de05e2 4977 web optional 
ikiwiki_3.20171001_source.buildinfo

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

iQIzBAEBCAAdFiEENuxaZEik9e95vv6Y4FrhR4+BTE8FAlnRFRAACgkQ4FrhR4+B
TE/2aA//bhDMx9j9/Nhc8D3ORqnbl+T6nKNsfkcum+nPTwQzHLgDqW3Avu2Tm247
dV2Qo0PnkOAQ3gHA/9ZeoknnPCuelVMgWhAsOp1aYk6qXcuRilF90qF4tnqZL0vj
70SD85qRksR+oUaiZLyp5y52bkt0I142CiqapS6AenrfGn3gc/2mttWJAy3ZNjyq
BwdmQrDjkdQf2hoTru+7Z/8iF/lStAuGlMOzb04warm5KqToP0XX85KMMD1F7h05
rjjw0Z4SrWJeuiWdJPE+XXt19dJH60bpL6fb2TmgsY70jOouv3v5LqnYeI9yw0g1
3WQweOKXVHqkw+Fb0sxpK2Xe5nqOgQ0GGzF5DI30edxsoLm5dYNrEivc6TBuKEl2
Stm2/tgZ3tcElh3B08JG0pxeJVL/bk7mAWnE1Et9IOqIWT7VeRHfSgm7ZfP6DABL
Ttd2Fl21IO41qTEuoIMk8BEvCZgxAvEkMWWNcAtkUcSARI5mf5IMV9+bBUEiv/7i
KC6LoTWHxNt4LH7rWmtL7RaWhAv0B4N/97pjumiBfCLVg+IwYWUluUp9d6QY7/Lp
4txGhKzsWdGeUKIXhGk/Y5AWWmPZ5ugwm192jOukLYZTOuQZzryeZ1+80jEjL+jT
XsJBnGjHcpj5pYZGUKRJAsNNOpKWhmcOvWN7WC+FAFT76M/+vPY=
=eVft
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to