mirror of
https://gitlab.freedesktop.org/uchardet/uchardet.git
synced 2025-12-06 16:56:40 +08:00
Merge branch uchardet:master into devel
This commit is contained in:
commit
3c1db7c8b1
@ -190,6 +190,9 @@ int main(int argc, char ** argv)
|
||||
return 1;
|
||||
}
|
||||
*comma = '\0';
|
||||
if (strcmp (lang_weight, "*") == 0)
|
||||
uchardet_set_default_weight(handle, strtof (comma + 1, NULL));
|
||||
else
|
||||
uchardet_weigh_language(handle, lang_weight, strtof (comma + 1, NULL));
|
||||
}
|
||||
while ((lang_weight = strtok_r (NULL, ",", &saveptr)));
|
||||
@ -266,6 +269,7 @@ int main(int argc, char ** argv)
|
||||
printf("%s: ", filename);
|
||||
}
|
||||
detect(handle, f, show_lang, verbose);
|
||||
fclose(f);
|
||||
}
|
||||
|
||||
uchardet_delete(handle);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user