File: 02-unicode

package info (click to toggle)
duplicity 3.0.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,424 kB
  • sloc: python: 25,028; sh: 1,041; ansic: 392; makefile: 83
file content (17 lines) | stat: -rw-r--r-- 435 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Author: Alexander Zangerl <az@debian.org>
Subject: fix unicode decode-does-encode-and-fail problems with iso8859 locales

--- a/duplicity/__main__.py
+++ b/duplicity/__main__.py
@@ -28,6 +28,11 @@
 
 import sys
 
+import os
+# override locale to avoid bug #682837, until
+# the logger finally deals with locales cleanly
+os.environ['LC_ALL']="POSIX"
+
 import duplicity.errors
 from duplicity import log
 from duplicity import tempdir