Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim-plugins.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Apitzsch <git@apitzsch.eu>2023-04-15 15:32:47 +0300
committerAndré Apitzsch <git@apitzsch.eu>2023-04-15 15:32:47 +0300
commitceeb13d58c19a85d978798306a38106351d31688 (patch)
treee0641a510957d26a6ae0982e14999e8139829ba3
parentdebcc20ee9e4a6287ebae7929cb11f9dd5bad46e (diff)
[pgp] Fix uid encoding on linux
-rw-r--r--pgp/plugin.py4
1 files changed, 3 insertions, 1 deletions
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 <http://www.gnu.org/licenses/>.
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):