Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unicode fix for recent OS X / Python / docutils #2

Merged
merged 3 commits into from Jun 24, 2016
Merged

Unicode fix for recent OS X / Python / docutils #2

merged 3 commits into from Jun 24, 2016

Conversation

ches
Copy link

@ches ches commented Jun 23, 2016

On Yosemite with system Python version 2.7.10 and latest docutils (0.12) installed, the result value that this plugin expected to be a str is now returned as unicode. Calling PyString_AsString on it returned a null C string and previews failed.

I'm not a Mac app developer, there may be better fixes or updates needed in other places, but this is the minimal fix that worked for me and got the plugin working again.

ches added 3 commits June 23, 2016 23:59
On my machine, the current version of docutils returns a unicode object
in the 'html_body' key of the result from publish_parts. Calling
PyString_AsString on this directly produced a null C string.

OS X Yosemite, system Python 2.7.10
docutils 0.12
@cluther cluther merged commit 66cd2e7 into cluther:master Jun 24, 2016
@cluther
Copy link
Owner

cluther commented Jun 24, 2016

@ches: I haven't used this in a while, but thanks for the fixes!

@ches ches deleted the unicode-fix branch June 24, 2016 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants