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

Updating lexers on Windows #157

Merged
merged 1 commit into from
Dec 10, 2016
Merged

Conversation

kyursen
Copy link
Contributor

@kyursen kyursen commented Dec 30, 2015

Pygments.rb fails with dump format error(0xa) after updating lexers cache on Windows.
This is caused by automatic LF->CRLF conversion.
Setting binary file mode in cache-lexers.rb disables LF conversion on Windows.

Explicitly set binary file mode when writing to file `lexers`.
It is required to disable line code conversion on Windows.
@gfx
Copy link
Collaborator

gfx commented Dec 10, 2016

Thanks. Looks good.

@gfx gfx merged commit a5c40bc into pygments:master Dec 10, 2016
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.

2 participants