X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/3d9156a7a519a5e3aa1b92e9d9d4b991f1aed7ff..7b00c0c43f52e9d27168e67a26aac19065cdb40c:/locale/FreeBSD/btowc.c.patch diff --git a/locale/FreeBSD/btowc.c.patch b/locale/FreeBSD/btowc.c.patch index 3dc8fcc..b9a02cd 100644 --- a/locale/FreeBSD/btowc.c.patch +++ b/locale/FreeBSD/btowc.c.patch @@ -1,5 +1,5 @@ ---- btowc.c.orig Thu Nov 25 11:38:16 2004 -+++ btowc.c Fri Feb 18 15:58:50 2005 +--- btowc.c.orig 2009-11-09 15:05:25.000000000 -0800 ++++ btowc.c 2009-11-09 15:05:25.000000000 -0800 @@ -27,18 +27,21 @@ #include __FBSDID("$FreeBSD: src/lib/libc/locale/btowc.c,v 1.4 2004/05/12 14:26:54 tjr Exp $"); @@ -23,7 +23,7 @@ if (c == EOF) return (WEOF); /* -@@ -47,7 +50,13 @@ +@@ -47,7 +50,13 @@ btowc(int c) * counts. */ cc = (char)c; @@ -31,10 +31,10 @@ + if (loc->__lc_ctype->__mbrtowc(&wc, &cc, 1, &mbs, loc) > 1) return (WEOF); return (wc); -+} + } + +wint_t +btowc(int c) +{ + return btowc_l(c, __current_locale()); - } ++}