X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/1f2f436a38f7ae2d39a943ad2898d8fed4ed2e58..2be56ee90c5c5bee77895b8787a43e894249002b:/locale/FreeBSD/wcwidth.c?ds=sidebyside diff --git a/locale/FreeBSD/wcwidth.c b/locale/FreeBSD/wcwidth.c index 587862e..ae533e7 100644 --- a/locale/FreeBSD/wcwidth.c +++ b/locale/FreeBSD/wcwidth.c @@ -38,6 +38,8 @@ #include __FBSDID("$FreeBSD: src/lib/libc/locale/wcwidth.c,v 1.8 2007/01/09 00:28:01 imp Exp $"); +#include "xlocale_private.h" + #include #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)); }