pkgsrc/mail/cone/patches/patch-ac
jlam 076a0e8267 Import cone-0.73 as pkgsrc/mail/cone:
Cone is a text-based mail client.  Cone seamlessly handles multiple
POP3, IMAP accounts, and local mail folders.  Cone is also a simple
newsreader.  Cone's interface is foolproof enough to be used by
inexperienced users, but it also offers advanced features for power
users.  Cone also serves as a platform for development of a new
experimental network mail access protocol, SMAP, that offers additional
functionality not available with IMAP or POP3.
2007-11-13 18:02:15 +00:00

36 lines
789 B
Text

$NetBSD: patch-ac,v 1.1.1.1 2007/11/13 18:02:15 jlam Exp $
--- curses/curses.C.orig Sat Mar 27 16:05:46 2004
+++ curses/curses.C
@@ -422,6 +422,16 @@ bool Curses::processKeyInFocus(const Key
return false;
}
+#if !HAVE_MBRTOWC
+static size_t mbrtowc(wchar_t *pw, const char *s, size_t n, mbstate_t *ps)
+{
+ if (s == NULL) return 0;
+ if (n == 0) return (size_t)-1;
+ if (pw) *pw = (wchar_t) *s;
+ return (*s != '\0');
+}
+#endif
+
void Curses::mbtow(const char *text, vector<wchar_t> &wbuf)
{
mbstate_t ps, ps_save;
@@ -471,6 +481,14 @@ void Curses::mbtow(const char *text, vec
}
}
+#if !HAVE_WCRTOMB
+static size_t wcrtomb(char *s, wchar_t w, mbstate_t *ps)
+{
+ if (s == NULL) return 0;
+ *s = (char) w;
+ return 1;
+}
+#endif
string Curses::wtomb(const wchar_t *w)
{