1 /* 2 Copyright (c) 2016 Corinna Vinschen <corinna@vinschen.de> 3 Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling 4 */ 5 /* Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling */ 6 #define _DEFAULT_SOURCE 7 #include <_ansi.h> 8 #include <newlib.h> 9 #include <wctype.h> 10 #include "local.h" 11 12 wint_t towlower_l(wint_t c,struct __locale_t * locale)13towlower_l (wint_t c, struct __locale_t *locale) 14 { 15 (void) locale; 16 #ifdef _MB_CAPABLE 17 return towctrans_l (c, WCT_TOLOWER, locale); 18 #else 19 return towlower (c); 20 #endif /* _MB_CAPABLE */ 21 } 22