File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 44
44
#include <assert.h>
45
45
#include <fcntl.h>
46
46
#include <limits.h>
47
+ #include <locale.h>
47
48
#include <sys/stat.h>
48
49
#include <sys/time.h>
49
50
@@ -776,6 +777,9 @@ int main(
776
777
/* This will check if stdout/stderr writing is successful */
777
778
atexit (close_stdout );
778
779
780
+ /* Set encoding for reports */
781
+ setlocale (LC_CTYPE , "C.UTF-8" );
782
+
779
783
/* reset the random seed */
780
784
init_rand ();
781
785
Original file line number Diff line number Diff line change @@ -408,7 +408,7 @@ void xml_close(
408
408
char name [MAX_FORMAT_STR ];
409
409
char buf [128 ];
410
410
411
- printf ("<?xml version=\"1.0\"?>\n" );
411
+ printf ("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\" ?>\n" );
412
412
printf ("<MTR SRC=\"%s\" DST=\"%s\"" , ctl -> LocalHostname ,
413
413
ctl -> Hostname );
414
414
printf (" TOS=\"0x%X\"" , ctl -> tos );
You can’t perform that action at this time.
0 commit comments