WHERE char *SslCACertFile INITVAL (NULL);
#endif
#endif
-WHERE char *StChars;
+WHERE mbchar_table *StChars;
WHERE char *Status;
WHERE char *Tempdir;
-WHERE char *Tochars;
+WHERE mbchar_table *Tochars;
WHERE char *TrashPath;
WHERE char *TSStatusFormat;
WHERE char *TSIconFormat;
case 'T':
snprintf (fmt, sizeof (fmt), "%%%ss", prefix);
snprintf (dest, destlen, fmt,
- get_nth_wchar (Tochars, mutt_user_is_recipient (hdr)));
+ (Tochars && ((i = mutt_user_is_recipient (hdr))) < Tochars->len) ? Tochars->chars[i] : " ");
break;
case 'u':
hdr->deleted ? 'D' : (hdr->attach_del ? 'd' : ch),
hdr->tagged ? "*" :
(hdr->flagged ? "!" :
- get_nth_wchar (Tochars, mutt_user_is_recipient (hdr))));
+ (Tochars && ((i = mutt_user_is_recipient (hdr)) < Tochars->len) ? Tochars->chars[i] : " ")));
colorlen = add_index_color (dest, destlen, flags, MT_COLOR_INDEX_FLAGS);
mutt_format_s (dest + colorlen, destlen - colorlen, prefix, buf2);
add_index_color (dest + colorlen, destlen - colorlen, flags, MT_COLOR_INDEX);
** required.)
*/
#endif /* defined(USE_SSL) */
- { "status_chars", DT_STR, R_BOTH, UL &StChars, UL "-*%A" },
+ { "status_chars", DT_MBCHARTBL, R_BOTH, UL &StChars, UL "-*%A" },
/*
** .pp
** Controls the characters used by the ``%r'' indicator in
** this variable is not set, the environment variable \fC$$$TMPDIR\fP is
** used. If \fC$$$TMPDIR\fP is not set then ``\fC/tmp\fP'' is used.
*/
- { "to_chars", DT_STR, R_BOTH, UL &Tochars, UL " +TCFL" },
+ { "to_chars", DT_MBCHARTBL, R_BOTH, UL &Tochars, UL " +TCFL" },
/*
** .pp
** Controls the character used to indicate mail addressed to you.
Context->deleted)) ? 1 : 0);
}
- if (!StChars)
+ if (!StChars || !StChars->len)
buf[0] = 0;
- else if (i >= mutt_strlen(StChars))
- buf[0] = StChars[0];
+ else if (i >= StChars->len)
+ snprintf (buf, buflen, "%s", StChars->chars[0]);
else
- buf[0] = StChars[i];
-
- buf[1] = 0;
+ snprintf (buf, buflen, "%s", StChars->chars[i]);
break;
}