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

Make Git::PurePerl robust against $/ value change #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gugod
Copy link

@gugod gugod commented Jul 16, 2012

Git::PurePerl assumes $/ = "\n" and uses chomp() in multiple places, which can be broken when used in script, where it's not uncomment to say something like this in somewhere:

undef $/;
my $data = <>;

The patch contains a test script local-rs.t, basically identical to simple.t, with one additional line to change the value of $/. However it's very sufficient to reproduce the failure.

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.

1 participant