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

Fix an issue caused by detecting the encoding when first data ia empty #17

Merged
merged 2 commits into from
Apr 11, 2013

Conversation

JonRowe
Copy link
Contributor

@JonRowe JonRowe commented Apr 11, 2013

If the first data passed to Diff::LCS::Hunk is empty then we get an error due to the encoding detection introduced in 1.2.2.
This attempts to use the old data as an encoding source, falls back to the new data as an encoding source and then finally to a string literal.

@halostatue
Copy link
Owner

I'll merge this as soon as I file a bug with Rubinius for the failed build in 1.9 mode—I need to be able to make a test case for them to see the problem in a somewhat better way. I'm treating it similar to the MacRuby issue; everyone else gets it right, why doesn't rbx?

That should be by the afternoon, and I'll do a release this evening.

halostatue added a commit that referenced this pull request Apr 11, 2013
Fix an issue caused by detecting the encoding when first data is empty
@halostatue halostatue merged commit 68e1a15 into halostatue:master Apr 11, 2013
@JonRowe
Copy link
Contributor Author

JonRowe commented Apr 11, 2013

Hey thanks! Could you ping me (via mention or whatever) when you've rolled a release? We're awaiting it over on RSpec :)

@halostatue
Copy link
Owner

@JonRowe the release is complete.

@JonRowe
Copy link
Contributor Author

JonRowe commented Apr 12, 2013

Thanks @halostatue! Appreciate it :)

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