From ceeb13d58c19a85d978798306a38106351d31688 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Apitzsch?= Date: Sat, 15 Apr 2023 14:32:47 +0200 Subject: [PATCH] [pgp] Fix uid encoding on linux --- pgp/plugin.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pgp/plugin.py b/pgp/plugin.py index 0a0d10d..416e055 100644 --- a/pgp/plugin.py +++ b/pgp/plugin.py @@ -15,6 +15,7 @@ # along with PGP Gajim Plugin. If not, see . import os +import sys import logging from functools import partial from packaging.version import Version as V @@ -101,7 +102,8 @@ class PGPPlugin(GajimPlugin): self._on_file_encryption_error), } - self._pgp = PGP(BINARY) + encoding = 'utf8' if sys.platform == 'linux' else None + self._pgp = PGP(BINARY, encoding=encoding) @staticmethod def get_pgp_module(account):