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

Use libidn2 instead of libidn #984

Merged
1 commit merged into from Apr 28, 2022
Merged

Use libidn2 instead of libidn #984

1 commit merged into from Apr 28, 2022

Conversation

ghost
Copy link

@ghost ghost commented Apr 28, 2022

Purpose

Replace libidn with libidn2.

Context

zonemaster/zonemaster-ldns#133

Changes

  • Update Travis dependency
  • Replace references to "libidn" with "libidn2"

How to test this PR

Using Zonemaster::LDNS (with libidn2 support), Zonemaster should work the same as before.

* Update Travis dependency
* Replace references to "libidn" with "libidn2"
@ghost ghost added this to the v2022.1 milestone Apr 28, 2022
@ghost ghost requested review from mattias-p, matsduf and hannaeko April 28, 2022 08:59
@@ -232,7 +232,7 @@ sub to_idn {
return Zonemaster::LDNS::to_idn( $str );
}
else {
warn __( "Warning: Zonemaster::LDNS not compiled with libidn, cannot handle non-ASCII names correctly." );
warn __( "Warning: Zonemaster::LDNS not compiled with libidn2, cannot handle non-ASCII names correctly." );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the following would be better and not bound to details not relevant here.

Warning: Zonemaster::LDNS not compiled with IDN support, cannot handle names with non-ASCII characters correctly.

But I accept as-is.

Compare with zonemaster/zonemaster-cli#254 (comment)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. I'll do the change in another PR.

@ghost ghost merged commit ad16167 into zonemaster:develop Apr 28, 2022
@ghost ghost mentioned this pull request Apr 28, 2022
@ghost ghost deleted the libidn2 branch December 23, 2022 09:58
This pull request was closed.
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