1
1

startup: warn about a strange character size only in the UTF-8 case

This addresses https://savannah.gnu.org/bugs/?50897.
Reported-by: Hannu Nyman <hannu.nyman@iki.fi>
Этот коммит содержится в:
Benno Schulenberg 2017-04-30 11:14:02 +02:00
родитель c1ebfa04ae
Коммит a8a60b29e6

Просмотреть файл

@ -2011,9 +2011,11 @@ int main(int argc, char **argv)
textdomain(PACKAGE);
#endif
#ifdef ENABLE_UTF8
if (MB_CUR_MAX > MAXCHARLEN)
fprintf(stderr, "Unexpected large character size: %i bytes"
" -- please report a bug\n", (int)MB_CUR_MAX);
#endif
#if defined(DISABLE_NANORC) && defined(DISABLE_ROOTWRAPPING)
/* If we don't have rcfile support, --disable-wrapping-as-root is