From: Alexander Zangerl <az@debian.org>
Date: Mon, 1 Jun 2026 16:49:08 +0800
Subject: fix unicode decode-does-encode-and-fail problems with iso8859
 locales

---
 duplicity/__main__.py | 5 +++++
 1 file changed, 5 insertions(+)

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