{
if (codepage == DEFAULT_CODEPAGE) {
int n = 0;
- mbstate_t state = { 0 };
+ mbstate_t state;
+ memset(&state, 0, sizeof state);
setlocale(LC_CTYPE, "");
while (mblen > 0) {
if (codepage == DEFAULT_CODEPAGE) {
char output[MB_LEN_MAX];
- mbstate_t state = { 0 };
+ mbstate_t state;
int n = 0;
+ memset(&state, 0, sizeof state);
setlocale(LC_CTYPE, "");
while (wclen > 0) {
/*
* Failing that, line_codepage should be decoded from the
- * specification in cfg.
+ * specification in conf.
*/
if (ucsdata->line_codepage == CS_NONE)
ucsdata->line_codepage = decode_codepage(linecharset);