]> git.saurik.com Git - apple/libc.git/blobdiff - locale/FreeBSD/wcwidth.c.patch
Libc-825.24.tar.gz
[apple/libc.git] / locale / FreeBSD / wcwidth.c.patch
diff --git a/locale/FreeBSD/wcwidth.c.patch b/locale/FreeBSD/wcwidth.c.patch
deleted file mode 100644 (file)
index 4f5e296..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
---- wcwidth.c.orig     2009-11-09 15:05:25.000000000 -0800
-+++ wcwidth.c  2009-11-09 15:05:26.000000000 -0800
-@@ -38,6 +38,8 @@
- #include <sys/cdefs.h>
- __FBSDID("$FreeBSD: src/lib/libc/locale/wcwidth.c,v 1.8 2007/01/09 00:28:01 imp Exp $");
-+#include "xlocale_private.h"
-+
- #include <wchar.h>
- #undef wcwidth
-@@ -46,5 +48,13 @@ int
- wcwidth(wchar_t wc)
- {
--      return (__wcwidth(wc));
-+      return (__wcwidth_l(wc, __current_locale()));
-+}
-+
-+int
-+wcwidth_l(wchar_t wc, locale_t loc)
-+{
-+
-+      NORMALIZE_LOCALE(loc);
-+      return (__wcwidth_l(wc, loc));
- }