[PATCH] Added utf-8 encoding header to deb822.

Jonny Lamb jonnylamb at jonnylamb.com
Fri Aug 15 19:14:31 UTC 2008


Calling methods on a Deb822 object (such as dump) when there are unicode
characters in fields raises a UnicodeDecodeError, because the file's
encoding is the system default: ascii.

Signed-off-by: Jonny Lamb <jonnylamb at jonnylamb.com>
Signed-off-by: John Wright <jsw at debian.org>
---
 debian_bundle/deb822.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/debian_bundle/deb822.py b/debian_bundle/deb822.py
index fbc96eb..1cffd4a 100644
--- a/debian_bundle/deb822.py
+++ b/debian_bundle/deb822.py
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
 # vim: fileencoding=utf-8
 #
 # A python interface for various rfc822-like formatted files used by Debian
-- 
1.5.5.GIT





More information about the pkg-python-debian-commits mailing list