From a891dd1d117a676d14fd5ca974644ea47fd10d4e Mon Sep 17 00:00:00 2001
From: zooko <zooko@zooko.com>
Date: Sun, 16 Jan 2011 23:27:41 +0530
Subject: [PATCH] setup: oh, and if there is a utf-8 "BOM" then decode the file
 contents as utf-8 before passing them to setup()

Ignore-this: 1c9843b51010f397b451221e2774d26

darcs-hash:eb197f870a35e036599d685de816d4df9af44522
---
 zfec/setup.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/zfec/setup.py b/zfec/setup.py
index 09de475..a000c82 100755
--- a/zfec/setup.py
+++ b/zfec/setup.py
@@ -143,7 +143,7 @@ data_files = [(doc_loc, data_fnames)]
 readmetext = open('README.rst').read()
 if readmetext[:3] == '\xef\xbb\xbf':
     # utf-8 "BOM"
-    readmetext = readmetext[3:]
+    readmetext = readmetext[3:].decode('utf-8')
 
 setup(name=PKG,
       version=verstr,
-- 
2.45.2