Also get set GPG.filesystemencoding in case we have to save a file.
parent
de9eb4ca77
commit
c7a4845ce4
|
@ -89,6 +89,7 @@ import codecs
|
|||
## For AOS, the locale module will need to point to a wrapper around the
|
||||
## java.util.Locale class.
|
||||
## See https://code.patternsinthevoid.net/?p=android-locale-hack.git
|
||||
import encodings
|
||||
import locale
|
||||
import logging
|
||||
import os
|
||||
|
@ -189,7 +190,8 @@ class GPGBase(object):
|
|||
if encoding is None: # This happens on Jython!
|
||||
encoding = sys.stdin.encoding
|
||||
self.encoding = encoding.lower().replace('-', '_')
|
||||
|
||||
self.filesystemencoding = encodings.normalize_encoding(
|
||||
sys.getfilesystemencoding().lower())
|
||||
|
||||
try:
|
||||
assert self.binary, "Could not find binary %s" % binary
|
||||
|
|
Loading…
Reference in New Issue