From b7c201d5883435e51e30921eaa07bfd091b885db Mon Sep 17 00:00:00 2001 From: Danny Smith Date: Fri, 25 Feb 2005 01:48:38 +0000 Subject: [PATCH] * include/wctype.h: Add comment on wctrans, towctrans, wctype. --- winsup/mingw/ChangeLog | 4 ++++ winsup/mingw/include/wctype.h | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/winsup/mingw/ChangeLog b/winsup/mingw/ChangeLog index 8948eeb6c..1cfab64a3 100644 --- a/winsup/mingw/ChangeLog +++ b/winsup/mingw/ChangeLog @@ -1,3 +1,7 @@ +2005-02-25 Danny Smith + + * include/wctype.h: Add comment on wctrans, towctrans, wctype. + 2005-02-25 Danny Smith * mingwex/wctype.c: New file. diff --git a/winsup/mingw/include/wctype.h b/winsup/mingw/include/wctype.h index 7b2d20a6d..07c433e73 100644 --- a/winsup/mingw/include/wctype.h +++ b/winsup/mingw/include/wctype.h @@ -128,6 +128,14 @@ __CRT_INLINE int __cdecl isleadbyte(int c) {return (_pctype[(unsigned char)(c)] typedef wchar_t wctrans_t; + +/* These are resolved by libmingwex.a. Note, that they are also exported + by the MS C++ runtime lib (msvcp60.dll). The msvcp60.dll implementations + of wctrans and towctrans are not C99 compliant in that wctrans("tolower") + returns 0, while std specifies that a non-zero value should be returned + for a valid string descriptor. If you want the MS behaviour (and you have + msvcp60.dll in your path) add -lmsvcp60 to your command line. */ + _CRTIMP wint_t __cdecl towctrans(wint_t, wctrans_t); _CRTIMP wctrans_t __cdecl wctrans(const char*); _CRTIMP wctype_t __cdecl wctype(const char*);