From 190673be84cd90c8ea23f0a6e0ff69544d75a93c Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Sat, 5 Jan 2019 08:58:09 +0000 Subject: lineedit: allow non-ASCII characters when tab-completing filenames --- libbb/lineedit.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libbb/lineedit.c b/libbb/lineedit.c index 6513219ce..11a77ec69 100644 --- a/libbb/lineedit.c +++ b/libbb/lineedit.c @@ -705,8 +705,12 @@ static void add_match(char *matched) while (*p) { /* ESC attack fix: drop any string with control chars */ if (*p < ' ' +# if !ENABLE_PLATFORM_MINGW32 || (!ENABLE_UNICODE_SUPPORT && *p >= 0x7f) || (ENABLE_UNICODE_SUPPORT && *p == 0x7f) +# else + || *p == 0x7f +# endif ) { free(matched); return; -- cgit v1.2.3-55-g6feb