From 3b42805efc37685426fe132e8453b7806f97bb89 Mon Sep 17 00:00:00 2001 From: JonathanCoe Date: Tue, 26 Aug 2014 13:55:42 +0200 Subject: [PATCH 1/3] Catch the standard Unix SIGTERM kill signal and do a graceful shutdown of PyBitmessage. We already do this for the SIGINT kill signal. The change allows us to do a clean shutdown of PyBitmessage when its process has been separated from the terminal. --- src/bitmessagemain.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bitmessagemain.py b/src/bitmessagemain.py index 491b82f0..fffe99e7 100755 --- a/src/bitmessagemain.py +++ b/src/bitmessagemain.py @@ -172,6 +172,7 @@ class Main: curses = True signal.signal(signal.SIGINT, helper_generic.signal_handler) + signal.signal(signal.SIGTERM, helper_generic.signal_handler) # signal.signal(signal.SIGINT, signal.SIG_DFL) helper_bootstrap.knownNodes() From 388bc6ba0466d412b78e93f682ad3f44bbd50e18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20HERVIER?= Date: Thu, 28 Aug 2014 13:39:40 +0200 Subject: [PATCH 2/3] #708 : Use default locale encoding Use locale endoding else this generate error in GU : as default time format can have non ascii char on non english locale, but using ascii in locale can generate UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 : In PyBitmessage/src/bitmessageqt/__init__.py" l10n.formatTimestamp()) In PyBitmessage/src/l10n.py", line 81, in formatTimestamp return unicode(timestring, encoding) --- src/l10n.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/l10n.py b/src/l10n.py index e3e8d07e..f9c9b456 100644 --- a/src/l10n.py +++ b/src/l10n.py @@ -18,7 +18,7 @@ language = DEFAULT_LANGUAGE try: import locale - encoding = locale.getpreferredencoding(False) or DEFAULT_ENCODING + encoding = locale.getpreferredencoding(True) or DEFAULT_ENCODING language = locale.getlocale()[0] or locale.getdefaultlocale()[0] or DEFAULT_LANGUAGE except: logger.exception('Could not determine language or encoding') From 6273ec6444577d756c91da2a9ab97fba3802d03a Mon Sep 17 00:00:00 2001 From: Michael Ford Date: Fri, 5 Sep 2014 11:48:59 +0800 Subject: [PATCH 3/3] Increment version number to 0.4.3 --- src/build_osx.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/build_osx.py b/src/build_osx.py index f2bf8378..9652ca80 100644 --- a/src/build_osx.py +++ b/src/build_osx.py @@ -1,7 +1,7 @@ from setuptools import setup name = "Bitmessage" -version = "0.4.2" +version = "0.4.3" mainscript = ["bitmessagemain.py"] setup(