Skip to content
This repository has been archived by the owner on Jun 9, 2018. It is now read-only.

Commit

Permalink
Change default encoding the handle non-ascii characters
Browse files Browse the repository at this point in the history
Close #17
  • Loading branch information
clburlison committed Mar 2, 2016
1 parent 0bb39e6 commit 73f4767
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Makefile for pinpoint related tasks

PKGTITLE="pinpoint"
PKGVERSION="0.0.3"
PKGVERSION="0.0.3.1"
PKGID=com.clburlison.pinpoint
PROJECT="pinpoint"

Expand Down
7 changes: 6 additions & 1 deletion pkgroot/Library/Application Support/pinpoint/bin/pinpoint
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ by default.
"""

import os
import sys
import plistlib
import platform
import subprocess
Expand All @@ -32,7 +33,7 @@ from Foundation import kCFPreferencesAnyUser
from Foundation import kCFPreferencesCurrentHost

__author__ = 'Clayton Burlison (https://clburlison.com)'
__version__ = '0.0.3'
__version__ = '0.0.3.1'

# Our preferences "bundle_id"
BUNDLE_ID = 'com.clburlison.pinpoint'
Expand All @@ -42,6 +43,10 @@ BUNDLE_ID = 'com.clburlison.pinpoint'
# Create global plist object for data storage
plist = dict()

# To resolve unicode write errors set our default encoding to utf8
reload(sys)
sys.setdefaultencoding('utf8')

# Retrieve system UUID
IOKit_bundle = NSBundle.bundleWithIdentifier_('com.apple.framework.IOKit')

Expand Down

0 comments on commit 73f4767

Please sign in to comment.