7c28d2
Index: Python-3.3.0/Lib/platform.py
7c28d2
===================================================================
7c28d2
--- Python-3.3.0.orig/Lib/platform.py
7c28d2
+++ Python-3.3.0/Lib/platform.py
7c28d2
@@ -331,7 +331,7 @@ def linux_distribution(distname='', vers
7c28d2
         return _dist_try_harder(distname,version,id)
7c28d2
 
7c28d2
     # Read the first line
7c28d2
-    with open('/etc/'+file, 'r') as f:
7c28d2
+    with open('/etc/'+file, 'r', encoding='utf-8', errors='surrogateescape') as f:
7c28d2
         firstline = f.readline()
7c28d2
     _distname, _version, _id = _parse_release_file(firstline)
7c28d2