Fix a typo that caused the optimized single-byte locale path not to be taken.

This commit is contained in:
Tim J. Robbins 2003-11-01 08:18:18 +00:00
parent 96af9ea52b
commit d86d5b37b7

View File

@ -47,7 +47,7 @@ __fputwc(wchar_t wc, FILE *fp)
mbstate_t mbs;
size_t i, len;
if (MB_LEN_MAX == 1 && wc > 0 && wc <= UCHAR_MAX) {
if (MB_CUR_MAX == 1 && wc > 0 && wc <= UCHAR_MAX) {
/*
* Assume single-byte locale with no special encoding.
* A more careful test would be to check