--- 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')