Re: [PATCH] Interix support in regexp.c
Moritz Barsnick <barsnick <at> gmx.net>
2008-08-07 17:51:14 GMT
Hi Fabian, list,
On Sat, Jul 19, 2008 at 23:59:25 +0200, Fabian Groffen wrote:
> * Interix doesn't have btowc, but it does have mbtowc. Linux manpage
> also discourages the use of btowc.
Same on some obscure version of Solaris - SunOS 5.5.1 to be precise. It
does have wide char support, but doesn't have btowc(), which mutt
(wrongly) assumes. Now, since this is one of very rare cases where this
occurs, I understand that mutt doesn't work around this case.
Now, if you say it is discouraged to use btowc(), I very much
appreciate you finding another way of doing it.
I thought I had previously (last millennium? [*]) posted my patch here
on this list, but I can't find a posting with Google.
I'll do that
post now, though very much obsoleted. What I do in it is to actually
check for a missing btowc, and include a replacement if required.
Oh well, old code revived. (I still patch all my mutt versions with it,
it's become a tradition.)
Moritz :)
[*] Actually, the oldest version I can find here is from 2002, for
version 1.3.25. :)
diff -ur mutt-1.5.15/PATCHES mutt-1.5.15-btowc/PATCHES
--- mutt-1.5.15/PATCHES 2007-03-15 16:49:37.000000000 +0100
(Continue reading)