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

Improve usability of CLI processor #36

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

teoric
Copy link

@teoric teoric commented Jul 7, 2015

teoric added 4 commits July 7, 2015 15:33
addresses CriticMarkup#33

Just using `open` tends to expect ASCII encoding. UTF-8 seems to be a
more sensible default.

Maybe in the long run, an encoding parameter makes sense?
The previous version failed with input file names that contained no
path component (i.e. were absolutely relative to the current
directory). In this case, "" was joined with "/<input file base
name>.html", which gave a file in the root directory ("/"), which is
both wrong and potentially dangerous (moreover, "/" is normally not
writeable for normal users). Using the absolute path of the input file
avoids this.
@hoijui
Copy link
Contributor

hoijui commented Sep 11, 2021

.. that sounds quite reasonable... any reason this is not merged?

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.

Doesn't work with cyrillic texts
2 participants