Also get set GPG.filesystemencoding in case we have to save a file.

testing/mmn/mktime_takes_localtime_not_gmtime
Isis Lovecruft 2013-05-23 07:05:14 +00:00
parent de9eb4ca77
commit c7a4845ce4
No known key found for this signature in database
GPG Key ID: A3ADB67A2CDB8B35
1 changed files with 3 additions and 1 deletions

View File

@ -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