stop using LAST_SUPPORTED_WCHAR and CONFIG_LAST_SUPPORTED_WCHAR, it's confusing

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2010-05-16 21:15:03 +02:00
parent b8909c52fe
commit 26e2c1db0d
3 changed files with 20 additions and 22 deletions

View File

@ -282,9 +282,8 @@ static wchar_t adjust_width_and_validate_wc(wchar_t wc)
int w = 1;
if (unicode_status == UNICODE_ON) {
if (unicode_is_raw_byte(wc)
|| (CONFIG_LAST_SUPPORTED_WCHAR && wc > CONFIG_LAST_SUPPORTED_WCHAR)
) {
if (wc > CONFIG_LAST_SUPPORTED_WCHAR) {
/* note: also true for unicode_is_raw_byte(wc) */
goto subst;
}
w = wcwidth(wc);