diff options
Diffstat (limited to 'net-firewall/ufw/files/ufw-0.30.1-encoding.patch')
-rw-r--r-- | net-firewall/ufw/files/ufw-0.30.1-encoding.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/net-firewall/ufw/files/ufw-0.30.1-encoding.patch b/net-firewall/ufw/files/ufw-0.30.1-encoding.patch new file mode 100644 index 000000000000..a4626ef0cff0 --- /dev/null +++ b/net-firewall/ufw/files/ufw-0.30.1-encoding.patch @@ -0,0 +1,15 @@ +Fixes usage with ufw-frontends. +upstream bug report: https://bugs.launchpad.net/ufw/+bug/921758 +--- src/util.py ++++ src/util.py +@@ -205,8 +205,9 @@ + + def open_file_read(f): + '''Opens the specified file read-only''' ++ import codecs + try: +- orig = open(f, 'r') ++ orig = codecs.open(f, 'r', "UTF-8") + except Exception: + raise + |