File: 02-unicode

package info (click to toggle)
duplicity 0.8.22-1
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 5,892 kB
  • sloc: python: 23,858; sh: 730; ansic: 388; makefile: 66
file content (17 lines) | stat: -rw-r--r-- 423 bytes parent folder | download | duplicates (2)
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/bin/duplicity
+++ b/bin/duplicity
@@ -32,6 +32,11 @@ standard_library.install_aliases()
 
 import json
 import os
+
+# override locale to avoid bug #682837, until
+# the logger finally deals with locales cleanly
+os.environ['LC_ALL']="POSIX"
+
 import sys
 
 from duplicity.dup_main import main