X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=state.c;h=f21db7e62b30bd3b09181de3312a8272742a6e6f;hp=12edf412a97ed229c6197e0687f16db2a7e805bf;hb=e4704214cabdd0b6e10b27cff5e2194959559809;hpb=2c0e197ef42e4cdff1eff705c8b1b1d07336bf24 diff --git a/state.c b/state.c index 12edf41..f21db7e 100644 --- a/state.c +++ b/state.c @@ -33,7 +33,7 @@ void mutt_convert_to_state (iconv_t cd, char *bufi, ssize_t * l, STATE * s) if (!bufi) { if (cd != MUTT_ICONV_ERROR) { ob = bufo, obl = sizeof (bufo); - mutt_iconv(cd, 0, 0, &ob, &obl); + my_iconv(cd, 0, 0, &ob, &obl); if (ob != bufo) state_prefix_put (bufo, ob - bufo, s); } @@ -51,7 +51,7 @@ void mutt_convert_to_state (iconv_t cd, char *bufi, ssize_t * l, STATE * s) ib = bufi, ibl = *l; for (;;) { ob = bufo, obl = sizeof (bufo); - mutt_iconv (cd, &ib, &ibl, &ob, &obl); + mutt_iconv (cd, &ib, &ibl, &ob, &obl, 0, "?"); if (ob == bufo) break; state_prefix_put (bufo, ob - bufo, s);