Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Smith <dannysmith@users.sourceforge.net>2006-09-01 03:48:56 +0400
committerDanny Smith <dannysmith@users.sourceforge.net>2006-09-01 03:48:56 +0400
commite635b309569280551f915a854fe987cb1756b0f1 (patch)
treebe10e9489e576e2c03af02165bf627163ef1aef4 /winsup/mingw/mingwex/btowc.c
parent55283468e62dd074fe9b1b0428b319d908e0e5d2 (diff)
Import David Gay's gdtoa library.
* mingwex/gdtoa: New directory. * mingwex/gdtoa/(arithchk.c, dmisc.c, dtoa.c, g__fmt.c, g_dfmt.c, g_ffmt.c, g_xfmt.c, gd_arith.h, gd_qnan.h, gdtoa.c, gdtoa.h, gdtoaimp.h, gethex.c, gmisc.c, hd_init.c, hexnan.c, misc.c, qnan.c, README, smisc.c, strtodg.c, strtodnrp.c, strtof.c, strtopx.c, sum.c, ulp.c): New files. * mingwex/(strtof.c, strtold.c, ldtoa.c): Remove files. * mingwex/math/(cephes-emath.c, cephes-emath.h): Remove files. * mingwex/mb_wc_common.h (get_cp_from_locale); Rename to get_codepage(). * mingwex/(btowc.c, wctob.c, mbrtowc.c, wcrtomb.c): Adjust call to get_codepage(). * mingwex/wcstold.c: Avoid using strtold internals. * mingwex/wcstof.c: Rewrite. * mingwex/Makefile.in (GDTOA_DISTFILES): Add to distribution. (GDTOA_OBJS): Add to library. (DISTFILES): Remove strtof.c strtold.c ldtoa.c cephes-emath.c cephes-emath.h. (STDLIB_OBJS): Remove. (STDLIB_STUB_OBJS): Remove strtof.o wcstof,o. (Q8_OBJS): Add wcstof.o wcstold.o. * include/stdlib.h (strtof): Remove inline definition. (wcstof): Likewise. * include/wchar.h (wcstof): Remove inline definition.
Diffstat (limited to 'winsup/mingw/mingwex/btowc.c')
-rwxr-xr-xwinsup/mingw/mingwex/btowc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/mingw/mingwex/btowc.c b/winsup/mingw/mingwex/btowc.c
index b369190d7..26b887026 100755
--- a/winsup/mingw/mingwex/btowc.c
+++ b/winsup/mingw/mingwex/btowc.c
@@ -12,7 +12,7 @@ wint_t btowc (int c)
{
unsigned char ch = c;
wchar_t wc = WEOF;
- MultiByteToWideChar (get_cp_from_locale(), MB_ERR_INVALID_CHARS,
+ MultiByteToWideChar (get_codepage(), MB_ERR_INVALID_CHARS,
(char*)&ch, 1, &wc, 1);
return wc;
}