From 98163911ec0b8bf7d25f5eb2f43cda7bd53a35f8 Mon Sep 17 00:00:00 2001 From: Stephane Bortzmeyer Date: Thu, 25 Dec 2003 20:32:57 +0000 Subject: [PATCH] Testing of IDN --- SRC/echoping.c | 1 + SRC/test-echoping-idn | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 SRC/test-echoping-idn diff --git a/SRC/echoping.c b/SRC/echoping.c index 84efe74..7e16a3d 100644 --- a/SRC/echoping.c +++ b/SRC/echoping.c @@ -427,6 +427,7 @@ main (argc, argv) server = argv[0]; #ifdef IDN locale_server = server; + /* TODO: segfaults if the locale is invalid */ utf8_server = stringprep_locale_to_utf8 (server); server = utf8_server; #endif diff --git a/SRC/test-echoping-idn b/SRC/test-echoping-idn new file mode 100644 index 0000000..9b8b101 --- /dev/null +++ b/SRC/test-echoping-idn @@ -0,0 +1,14 @@ +#!/bin/sh + +# $Id$ + +echo "" +echo "Since this tests tries remote servers, a failure is not always " +echo " echoping's fault: it may be a network problem." +echo "" +echo "For this specific test, you *must* set the locale to UTF-8. It is system-" +echo "dependent but you typically 'export LC_CTYPE=xx_XX.utf8'. 'locale -a' to get" +echo "possible values." + +./echoping -h / -v café.gennic.net +