summaryrefslogtreecommitdiff
path: root/user/iputils/fix-idn.patch
diff options
context:
space:
mode:
Diffstat (limited to 'user/iputils/fix-idn.patch')
-rw-r--r--user/iputils/fix-idn.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/user/iputils/fix-idn.patch b/user/iputils/fix-idn.patch
new file mode 100644
index 000000000..4aaae8e82
--- /dev/null
+++ b/user/iputils/fix-idn.patch
@@ -0,0 +1,14 @@
+--- iputils-s20180629/ping.c.orig 2018-06-29 11:00:46.000000000 -0700
++++ iputils-s20180629/ping.c 2018-07-06 01:09:10.479830175 -0700
+@@ -207,9 +210,10 @@
+
+ #ifdef USE_IDN
+ setlocale(LC_ALL, "");
+-#endif
++
+ if (!strcmp(setlocale(LC_ALL, NULL), "C"))
+ hints.ai_flags &= ~ AI_CANONIDN;
++#endif
+
+ /* Support being called using `ping4` or `ping6` symlinks */
+ if (argv[0][strlen(argv[0])-1] == '4')