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

Decode the input before building XML commands. #57

Open
wants to merge 1 commit into
base: pathogen-bundle
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions autoload/coqtop.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def encode_value(v):
xml = build('bool', str(v).lower())
xml.text = str(v)
return xml
elif isinstance(v, str):
elif isinstance(v, str) or isinstance(v, unicode):
xml = build('string')
xml.text = v
return xml
Expand Down Expand Up @@ -244,7 +244,7 @@ def cur_state():

def advance(cmd, encoding = 'utf-8'):
global state_id
r = call('Add', ((cmd, -1), (cur_state(), True)), encoding)
r = call('Add', ((cmd.decode(encoding), -1), (cur_state(), True)), encoding)
if r is None:
return r
if isinstance(r, Err):
Expand Down