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

[autohint] Enclose the AUTOHINTEXE path in quotes #654

Merged
merged 1 commit into from
Oct 23, 2018
Merged

[autohint] Enclose the AUTOHINTEXE path in quotes #654

merged 1 commit into from
Oct 23, 2018

Conversation

Arnie97
Copy link
Contributor

@Arnie97 Arnie97 commented Oct 22, 2018

@miguelsousa
Copy link
Member

@Arnie97 thanks, the patch looks good. There has been a GitHub incident that impacts this PR. We're waiting for the status to go green before merging.

@miguelsousa miguelsousa merged commit b7b86e1 into adobe-type-tools:develop Oct 23, 2018
@@ -1237,7 +1237,7 @@ def hintFile(options):
else:
if os.path.exists(tempBezNew):
os.remove(tempBezNew)
command = AUTOHINTEXE + " %s%s%s%s -s %s -f \"%s\" \"%s\"" % (verboseArg, suppressEditArg, supressHintSubArg, decimalArg, NEWBEZ_SUFFIX, tempFI, tempBez)
command = '"%s" %s%s%s%s -s %s -f "%s" "%s"' % (AUTOHINTEXE, verboseArg, suppressEditArg, supressHintSubArg, decimalArg, NEWBEZ_SUFFIX, tempFI, tempBez)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you called the subprocess with a list of strings instead a single string, then subprocess would take care of the quoting for you

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

autohint.py is on the chopping block

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and fdkutils.runShellCmd is used in many places; any changes to it need to be done carefully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants