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 all Encode modules so their encode(undef) and decode(undef) calls returns undef #93

Merged
merged 1 commit into from Mar 26, 2017

Commits on Mar 21, 2017

  1. Fix all Encode modules so their encode(undef) and decode(undef) calls…

    … returns undef
    
    Currently encode and decode methods of more Encode modules returned empty
    string for input undef values. This patches fixes it and now both calls
    
     Encode::find_encoding($enc)->encode(undef);
     Encode::encode($enc, undef);
    
    are equivalent and return undef. Same for decode().
    
    Unit test t/undef.t was extended to verify this state.
    pali committed Mar 21, 2017
    Configuration menu
    Copy the full SHA
    505a4f5 View commit details
    Browse the repository at this point in the history