Your message dated Mon, 13 Nov 2017 17:49:34 +0000
with message-id <e1eeirw-000cqt...@fasolo.debian.org>
and subject line Bug#880368: fixed in libconfig-model-dpkg-perl 2.103
has caused the Debian Bug report #880368,
regarding YAML::XS::Load expects utf8 octets, not perl's encoding; use slurp_raw
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 ow...@bugs.debian.org
immediately.)


-- 
880368: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=880368
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: libconfig-model-dpkg-perl
Severity: normal
Version: 2.101
Tag: patch

YAML::XS::Load (and *hopefully* the other implementations of
YAML::Any::Load?) expect utf8 octets on input, not perl's internal
encoding.

Thus, slurp_raw should be used instead of slurp_utf8. [Though really,
YAML::XS::Load should probably do the right thing if is_utf8 is on,
anyway.]


-- 
Don Armstrong                      https://www.donarmstrong.com

I will not make any deals with you. I've resigned. I will not be
pushed, filed, stamped, indexed, briefed, debriefed or numbered. My
life is my own. I resign.
 -- Patrick McGoohan as Number 6 in "The Prisoner"
From 778867c1a9c9ff80ad2ba272845397c39e4030e7 Mon Sep 17 00:00:00 2001
From: Don Armstrong <d...@debian.org>
Date: Mon, 30 Oct 2017 15:24:57 -0700
Subject: [PATCH] use slurp_raw for Load $yaml to get raw UTF8 octets

 YAML::XS::Load needs utf8 octets on input, not perl's internal encoding.
---
 lib/Dpkg/Copyright/Scanner.pm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/Dpkg/Copyright/Scanner.pm b/lib/Dpkg/Copyright/Scanner.pm
index b6e07be9..8db18d37 100644
--- a/lib/Dpkg/Copyright/Scanner.pm
+++ b/lib/Dpkg/Copyright/Scanner.pm
@@ -177,7 +177,7 @@ sub scan_files ( %args ) {
         my $scan_patterns = $debian->child("copyright-scan-patterns.yml");
 
         if ($debian->is_dir and $scan_patterns->is_file) {
-            my $yaml = $scan_patterns->slurp_utf8;
+            my $yaml = $scan_patterns->slurp_raw;
             # { check => { suffixes => [ js pl ], pattern => '[A-Z]*'}, ignore => { suffixes => [ jpg png ], pattern => 'foo.*'} }
             $scan_data = Load $yaml;
         }
@@ -613,7 +613,7 @@ sub __load_fill_blank_data ($current_dir) {
 
         warn "Note: loading @fills fixes" if @fills and not $quiet;
         foreach my $file ( @fills) {
-            my $yaml = $file->slurp_utf8;
+            my $yaml = $file->slurp_raw;
             my $data = Load $yaml;
             foreach my $path (sort keys %$data) {
                 if ($fill_blanks{$path}) {
-- 
2.15.0.rc1


--- End Message ---
--- Begin Message ---
Source: libconfig-model-dpkg-perl
Source-Version: 2.103

We believe that the bug you reported is fixed in the latest version of
libconfig-model-dpkg-perl, 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 880...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Dominique Dumont <d...@debian.org> (supplier of updated 
libconfig-model-dpkg-perl 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 ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Mon, 13 Nov 2017 13:38:07 +0100
Source: libconfig-model-dpkg-perl
Binary: libconfig-model-dpkg-perl
Architecture: source
Version: 2.103
Distribution: unstable
Urgency: medium
Maintainer: Debian Perl Group <pkg-perl-maintain...@lists.alioth.debian.org>
Changed-By: Dominique Dumont <d...@debian.org>
Description:
 libconfig-model-dpkg-perl - editor for Dpkg source files with validation
Closes: 880368
Changes:
 libconfig-model-dpkg-perl (2.103) unstable; urgency=medium
 .
   * new feature: add support for Autopkgtest
   * fix utf8 handling of debian/*.yml files (Closes: #880368)
   * improve error message about missing license paragraph
   * control:
     * depends on libconfig-model-tester-perl >= 3.003
     * depends on libconfig-model-perl >= 2.114
Checksums-Sha1:
 962bbe72ff05884fafde315fd1eb429f7685c1c8 2371 
libconfig-model-dpkg-perl_2.103.dsc
 4fa0e796ee75ddd9bb6262e9de52d4484990eb73 260980 
libconfig-model-dpkg-perl_2.103.tar.xz
 d8b9a2979ee144c129a6e23263fc646dfe557730 5372 
libconfig-model-dpkg-perl_2.103_source.buildinfo
Checksums-Sha256:
 e0e9eaa67cb5abb8cc76563a5762b835bcb0bc0504999071a609197e3fd98835 2371 
libconfig-model-dpkg-perl_2.103.dsc
 ecb991f08274086f229b007fd97d2d2a595402a3f9d379c83b7f5a8a18bfc584 260980 
libconfig-model-dpkg-perl_2.103.tar.xz
 0356ce9fe2acd20124655c140cd29481b324b9dfacf7f6d1a83a47ce9c77d7d3 5372 
libconfig-model-dpkg-perl_2.103_source.buildinfo
Files:
 aab32dfe63df83ae614867a94763bce8 2371 perl optional 
libconfig-model-dpkg-perl_2.103.dsc
 9aa866690799c64aaa5ddf313bf18840 260980 perl optional 
libconfig-model-dpkg-perl_2.103.tar.xz
 9fca13af01f4de2b59d3ecb4b6ad3fa4 5372 perl optional 
libconfig-model-dpkg-perl_2.103_source.buildinfo

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

iQIzBAEBCgAdFiEEn3I5/LZk8Qsz6dwDwx9P2UmrK2wFAloJ1HQACgkQwx9P2Umr
K2z7Hw//XUIrofE5VEd4GSFveXXYEA/oUOMkIgqTP8znZn72wp3thFqcUUhh4iIc
Ed8XOUYNS6afpP5YYfGlArJ7MLL7liC9iJxAN2URgW1nua7DizUhtxSgN5+fzmmp
inMksSnMwdxXuhcuk002xXGkiYg6OWoR3SsQlQCuH4ncAkYtJtBO7RD3F6yJss0i
six7eFtqSzYfGiNLp/4iE3KjwglwiWEpY+nY7rfLLLaFL1ll6PoR/RTDvgXbdeT2
lt8QQU2+sV1NZDZl0/c5Zd/UWGlJ58u0D3KXeUnJvi8P12keVoSkbOVGZGb+Jz3T
8mLcEcu2p4XWqeWJanZFlDQ94+0/OUQYmg5Ykbt1+vv/IOEVzs+ezNfGAHW18O1b
E0V7MutXkI/4hlX2hO2RwrpfOJR4/hnM1fT45sEDO6RuT3/wiPOVsE/mDXLFvB6Y
nRtkYqW9qRk7K4Z/nX5gvEi+CrvliqGtQWIeZi/sri14byMOHYrWGffrX1WW/gqY
DzfJHcrYsIrEOOSmLjRlLh+1Zh5E4eYTQHQndghJI4DrxYZtkERAZuEhDhkpnY9U
0sMn0Jwp3oXvGm63wEmTpEh78y4LrhMzBUgWI8JD1yE/ojus6W818XPbjB/VQI7L
061fezUQNNMq+/43dsM6N1TU3pee0995vx1E3KD+4vp9qUbHXi4=
=xoLS
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to