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 <wctype.h> 8 #include "local.h" 9 10 wint_t towupper_l(wint_t c,struct __locale_t * locale)11towupper_l (wint_t c, struct __locale_t *locale) 12 { 13 (void) locale; 14 #ifdef _MB_CAPABLE 15 return towctrans_l (c, WCT_TOUPPER, locale); 16 #else 17 return towupper (c); 18 #endif /* _MB_CAPABLE */ 19 } 20