mirror of
https://gitlab.freedesktop.org/uchardet/uchardet.git
synced 2025-12-06 08:46:40 +08:00
test: fix test script to use the new API and get rid of build warning.
This commit is contained in:
parent
c333362dd1
commit
94736d1565
@ -65,7 +65,7 @@ detect(FILE *fp)
|
||||
}
|
||||
uchardet_data_end(handle);
|
||||
|
||||
charset = strdup(uchardet_get_charset(handle));
|
||||
charset = strdup(uchardet_get_encoding(handle, 0));
|
||||
for (i = 0; charset[i]; i++)
|
||||
{
|
||||
/* Our test files are lowercase. */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user