Re: [Mutt] #2901: wrong parameter micalg with mutt 1.5.15 and gpgme
#2901: wrong parameter micalg with mutt 1.5.15 and gpgme
Comment (by Sertaç Ö. Yıldız):
{{{
[05.Haz.07 15:38 -0000] Mutt:
> The following patch solves the problem:
[…]
> + if (!get_micalg (ctx, buf+4, sizeof buf - 4))
> + {
> + /*
> + * Convert result according to RFC3156
> + */
> + for (i = 4; buf[i] && i < sizeof buf; i++)
> + buf[i] = tolower(buf[i]);
tolower() is not locale safe so this might not give what you intend to
get on some (Turkish) locales. ascii_tolower() might be more
appropriate.
}}}
--
Ticket URL: <http://dev.mutt.org/trac/ticket/2901#comment:>