<<< Date Index >>>     <<< Thread Index >>>

Re: [PATCH] Interix support in regex.c



On 07-08-2008 19:51:14 +0200, Moritz Barsnick wrote:
> 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.

FWIW: I based my "other way" on what the manpage suggested, and how in
other places the same thing is done (within Mutt).

> 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.)

:)

I think your patch would work fine on Interix too.  I use my patch
without problems on Solaris, Darwin and Linux for a while now.

I would just appreciate either of both patches to make it to the mutt
sources though.


-- 
Fabian Groffen
Gentoo on a different level