1 --- fgetwln.c.orig 2005-09-14 19:51:14.000000000 -0700
2 +++ fgetwln.c 2005-09-14 19:53:18.000000000 -0700
7 -fgetwln(FILE * __restrict fp, size_t *lenp)
8 +fgetwln_l(FILE * __restrict fp, size_t *lenp, locale_t loc)
16 - while ((wc = __fgetwc(fp)) != WEOF) {
17 + while ((wc = __fgetwc(fp, loc)) != WEOF) {
19 if (len * sizeof(wchar_t) >= fp->_lb._size &&
20 __slbexpand(fp, (len + GROW) * sizeof(wchar_t)))
27 +fgetwln(FILE * __restrict fp, size_t *lenp)
29 + return fgetwln_l(fp, lenp, __current_locale());