Use wide character ctype functions directly instead of relying on
4.4BSD extensions to the single-byte ctype functions.
This commit is contained in:
parent
5349a8bc12
commit
6eb74185cd
@ -47,10 +47,10 @@ towctrans(wint_t wc, wctrans_t desc)
|
||||
|
||||
switch (desc) {
|
||||
case _WCT_TOLOWER:
|
||||
wc = tolower(wc);
|
||||
wc = towlower(wc);
|
||||
break;
|
||||
case _WCT_TOUPPER:
|
||||
wc = toupper(wc);
|
||||
wc = towupper(wc);
|
||||
break;
|
||||
case _WCT_ERROR:
|
||||
default:
|
||||
|
Loading…
x
Reference in New Issue
Block a user