#include <assert.h>
#include <fcntl.h>
#include <limits.h>
+#include <locale.h>
#include <sys/stat.h>
#include <sys/time.h>
/* This will check if stdout/stderr writing is successful */
atexit(close_stdout);
+ /* Set encoding for reports */
+ setlocale(LC_CTYPE, "C.UTF-8");
+
/* reset the random seed */
init_rand();
char name[MAX_FORMAT_STR];
char buf[128];
- printf("<?xml version=\"1.0\"?>\n");
+ printf("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n");
printf("<MTR SRC=\"%s\" DST=\"%s\"", ctl->LocalHostname,
ctl->Hostname);
printf(" TOS=\"0x%X\"", ctl->tos);