src: uchardet tool now shows the language code in verbose mode.

This commit is contained in:
Jehan 2020-04-23 18:39:17 +02:00
parent c550af99a7
commit d48ee7abc2

View File

@ -74,9 +74,15 @@ static void detect(FILE *fp,
printf("\n"); printf("\n");
for (i = 0; i < candidates; i++) for (i = 0; i < candidates; i++)
{ {
printf("\t%s (%f)\n", if (uchardet_get_language(handle, i))
uchardet_get_encoding(handle, i), printf("\t%s / %s (%f)\n",
uchardet_get_confidence(handle, i)); uchardet_get_encoding(handle, i),
uchardet_get_language(handle, i),
uchardet_get_confidence(handle, i));
else
printf("\t%s (%f)\n",
uchardet_get_encoding(handle, i),
uchardet_get_confidence(handle, i));
} }
} }
else else