nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit a8a60b29e679c33c8abbeb36875662a3dd26e4cb
parent c1ebfa04ae2c4d09c07cb9b5b5b9b7e829d099f5
Author: Benno Schulenberg <bensberg@justemail.net>
Date:   Sun, 30 Apr 2017 11:14:02 +0200

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>

Diffstat:
Msrc/nano.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/nano.c b/src/nano.c @@ -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