use proper format string rather than casting it away

SVN revision: 39399
This commit is contained in:
Mike Frysinger 2009-03-06 21:40:09 +00:00
parent 65fa823f9b
commit f4b5e3e99f
1 changed files with 2 additions and 2 deletions

View File

@ -388,8 +388,8 @@ LangInit(void)
if (EDebug(EDBUG_TYPE_VERBOSE))
{
Eprintf("Locale: %s\n", setlocale(LC_ALL, NULL));
Eprintf("Character encoding: locale=%s internal=%s MB_CUR_MAX=%d\n",
enc_loc, enc_int, (int)MB_CUR_MAX);
Eprintf("Character encoding: locale=%s internal=%s MB_CUR_MAX=%zu\n",
enc_loc, enc_int, MB_CUR_MAX);
}
if (!Estrcasecmp(enc_loc, "utf8") || !Estrcasecmp(enc_loc, "utf-8"))