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

Guard fixOutput with setOutput instead of setInput #3002

Merged
merged 1 commit into from
Feb 20, 2017
Merged

Guard fixOutput with setOutput instead of setInput #3002

merged 1 commit into from
Feb 20, 2017

Conversation

RyanGlScott
Copy link
Contributor

I adapted the fixCodePage function for use in my standalone code-page library, and while doing so I noticed a small mix-up in its implementation. fixCodePage uses the internal functions fixInput and fixOutput to actually change the input and output codepages respectively, but while fixInput is guarded by the value setInput, fixOutput isn't guarded by setOutput—it's guarded by setInput too! This seems like a mistake, unless I'm mistaken.

RyanGlScott added a commit to RyanGlScott/code-page that referenced this pull request Feb 14, 2017
@snoyberg snoyberg merged commit 9285c18 into commercialhaskell:master Feb 20, 2017
@snoyberg
Copy link
Contributor

Thank you!

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