Package: libsbuild-perl
Version: 0.62.5-1
Severity: wishlist
File: /usr/share/perl5/Sbuild/Build.pm
Tags: patch

I noticed when building the 2.11.1 devscripts package that the .changes
file attached to the log mail isn't UTF-8 encoded.  Since all control
files must be UTF-8 encoded according to policy ยง5.1, it should be safe
to specify a charset of UTF-8 as per the attached patch.

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (100, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.39-2-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libsbuild-perl depends on:
ii  adduser                       3.113      add and remove users and groups
ii  apt                           0.8.15.6   Advanced front-end for dpkg
ii  apt-utils                     0.8.15.6   APT utility programs
ii  dctrl-tools                   2.18       Command-line tools to process Debi
ii  devscripts                    2.11.0     scripts to make the life of a Debi
ii  dpkg-dev                      1.16.0.3   Debian package development tools
ii  libdpkg-perl                  1.16.0.3   Dpkg perl modules
ii  libexception-class-perl       1.31-1     module that allows you to declare 
ii  libfilesys-df-perl            0.92-3+b2  Module to obtain filesystem disk s
ii  libmime-lite-perl             3.027-1    module for convenient MIME message
ii  perl                          5.12.4-4   Larry Wall's Practical Extraction 
ii  perl-modules [libio-zlib-perl 5.12.4-4   Core Perl modules
ii  postfix [mail-transport-agent 2.8.4-1    High-performance mail transport ag
ii  schroot                       1.4.23-1   Execute commands in a chroot envir

libsbuild-perl recommends no packages.

libsbuild-perl suggests no packages.

-- no debconf information

-- 
James
GPG Key: 1024D/61326D40 2003-09-02 James Vega <james...@debian.org>
From d9ec2fe1260e7d3177dfccb3c33c7aec0e696415 Mon Sep 17 00:00:00 2001
From: James Vega <james...@debian.org>
Date: Mon, 22 Aug 2011 20:45:27 -0400
Subject: [PATCH] Sbuild::Build: Use utf-8 for .changes log attachment

---
 lib/Sbuild/Build.pm |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/lib/Sbuild/Build.pm b/lib/Sbuild/Build.pm
index 3732577..6b1930e 100644
--- a/lib/Sbuild/Build.pm
+++ b/lib/Sbuild/Build.pm
@@ -2317,11 +2317,13 @@ sub send_mime_build_log {
 
     my $changes = $self->get('Package_SVersion') . '_' . $self->get('Arch') . '.changes';
     if ($self->get_status() eq 'successful' && -r $changes) {
-	$msg->attach(
+	my $log_part = MIME::Lite->new(
 		Type     => 'text/plain',
 		Path     => $changes,
 		Filename => basename($changes)
 		);
+	$log_part->attr('content-type.charset' => 'UTF-8');
+	$msg->attach($log_part);
     }
 
     my $stats = '';
-- 
1.7.5.4

Attachment: signature.asc
Description: Digital signature

Reply via email to