os.name on mac can also be "posix". This caused a problem with FLS 5 on OSX, which would then return glyph.note as latin-1 rather than macroman, which would cause the wrong string to be written in UFO. Tip of the hat to Kai Bernau for reporting.
git-svn-id: http://svn.robofab.com/trunk@28 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
This commit is contained in:
parent
0045ab5862
commit
2b446bb01c
@ -17,7 +17,7 @@ from robofab.plistlib import Data, Dict, readPlist, writePlist
|
|||||||
from StringIO import StringIO
|
from StringIO import StringIO
|
||||||
|
|
||||||
# local encoding
|
# local encoding
|
||||||
if os.name == "mac":
|
if os.name in ["mac", "posix"]:
|
||||||
LOCAL_ENCODING = "macroman"
|
LOCAL_ENCODING = "macroman"
|
||||||
else:
|
else:
|
||||||
LOCAL_ENCODING = "latin-1"
|
LOCAL_ENCODING = "latin-1"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user