This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Created attachment 159542 [details] Bug screenshot Hello. printf("<p class = \"CBL\"><a name = \"CBL\">%lc</a></p>", wcCityName[0]); In this code string format specifier lc marked as wrong because wcCityName[0] variable is treated as integer while it is wide char. Best regards, Daniil.
Could you, please, provide declaration of wcCityName. Thanks!
wchar_t *wcCityName = NULL;
Then some memory is allocated for it with wcCityName = realloc(wcCityName, strlen(Row[1]) * WCHAR_SIZE); and it is filled with mbstowcs(wcCityName, Row[1], strlen(Row[1])); Where Row[1] is char pointer which is fetched from mysql result.
The issue is that wchar_t* is recognized as just wchar_t
Sorry, I was wrong. Everything recognized correctly and we shouldn't mark %lc for wchar_t as error.
fixed in change set: http://hg.netbeans.org/cnd-main/rev/e12136eb92df
Integrated into 'main-silver', will be available in build *201607210002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/e12136eb92df User: Danila Sergeyev <danilasergeyev@netbeans.org> Log: fix bug #259130 Wrong format string notification