[xdt-csource] main.c has found several typos while building in MinGW
The log of make
is as follows:
main.c: In function 'main':
main.c:379:18: warning: implicit declaration of function 'g_local_to_utf8'; did you mean 'g_locale_to_utf8'? [-Wimplicit-function-declaration]
379 | filename = g_local_to_utf8 (argv[1], -1, NULL, NULL, NULL);
| ^~~~~~~~~~~~~~~
| g_locale_to_utf8
main.c:379:16: warning: assignment to 'gchar *' {aka 'char *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]
379 | filename = g_local_to_utf8 (argv[1], -1, NULL, NULL, NULL);
| ^
main.c:404:20: warning: assignment to 'gchar *' {aka 'char *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]
404 | filename = g_local_to_utf8 (*p, -1, NULL, NULL, NULL);
| ^
CCLD xdt-csource.exe
It seems that the g_locale_to_utf8
is misspelled as g_local_to_utf8
.