X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/7b00c0c43f52e9d27168e67a26aac19065cdb40c..ad3c9f2af814c84582fdd1649e49ec4f68572c5a:/stdio/FreeBSD/getwc.c.patch diff --git a/stdio/FreeBSD/getwc.c.patch b/stdio/FreeBSD/getwc.c.patch deleted file mode 100644 index f6594bd..0000000 --- a/stdio/FreeBSD/getwc.c.patch +++ /dev/null @@ -1,26 +0,0 @@ ---- getwc.c.orig 2004-11-25 11:38:35.000000000 -0800 -+++ getwc.c 2005-02-23 17:28:11.000000000 -0800 -@@ -27,6 +27,8 @@ - #include - __FBSDID("$FreeBSD: src/lib/libc/stdio/getwc.c,v 1.3 2004/05/25 10:42:52 tjr Exp $"); - -+#include "xlocale_private.h" -+ - #include "namespace.h" - #include - #include -@@ -44,5 +46,13 @@ - getwc(FILE *fp) - { - -- return (fgetwc(fp)); -+ return (fgetwc_l(fp, __current_locale())); -+} -+ -+wint_t -+getwc_l(FILE *fp, locale_t loc) -+{ -+ -+ /* no need to call NORMALIZE_LOCALE(loc) because fgetwc_l will */ -+ return (fgetwc_l(fp, loc)); - }