From 2473b8db07fbc0be58518e303a441a2eb980281a Mon Sep 17 00:00:00 2001 From: Graham Gilbert Date: Thu, 10 Mar 2016 17:20:27 +0000 Subject: [PATCH] Fix for using unicode --- Makefile | 2 +- sal-postflight | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2065693..c9f6a16 100755 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ USE_PKGBUILD=1 include /usr/local/share/luggage/luggage.make -PACKAGE_VERSION=1.0.0 +PACKAGE_VERSION=1.0.1 TITLE=sal_scripts PACKAGE_NAME=sal_scripts REVERSE_DOMAIN=com.github.salopensource diff --git a/sal-postflight b/sal-postflight index 58d54e1..dbb9e89 100755 --- a/sal-postflight +++ b/sal-postflight @@ -32,6 +32,10 @@ import yaml BUNDLE_ID = 'com.github.salopensource.sal' VERSION = '1.0.0' +# To resolve unicode write errors set our default encoding to utf8 +reload(sys) +sys.setdefaultencoding('utf8') + def main(): set_verbosity()