aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2019-01-05 08:58:09 +0000
committerRon Yorston <rmy@pobox.com>2019-01-05 08:58:09 +0000
commit190673be84cd90c8ea23f0a6e0ff69544d75a93c (patch)
treede7935ca0347f9fe5ea2460a652631ead0c90274
parent0ffd8b3261e764179572d58179ae8e2c21635220 (diff)
downloadbusybox-w32-190673be84cd90c8ea23f0a6e0ff69544d75a93c.tar.gz
busybox-w32-190673be84cd90c8ea23f0a6e0ff69544d75a93c.tar.bz2
busybox-w32-190673be84cd90c8ea23f0a6e0ff69544d75a93c.zip
lineedit: allow non-ASCII characters when tab-completing filenames
-rw-r--r--libbb/lineedit.c4
1 files changed, 4 insertions, 0 deletions
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)
705 while (*p) { 705 while (*p) {
706 /* ESC attack fix: drop any string with control chars */ 706 /* ESC attack fix: drop any string with control chars */
707 if (*p < ' ' 707 if (*p < ' '
708# if !ENABLE_PLATFORM_MINGW32
708 || (!ENABLE_UNICODE_SUPPORT && *p >= 0x7f) 709 || (!ENABLE_UNICODE_SUPPORT && *p >= 0x7f)
709 || (ENABLE_UNICODE_SUPPORT && *p == 0x7f) 710 || (ENABLE_UNICODE_SUPPORT && *p == 0x7f)
711# else
712 || *p == 0x7f
713# endif
710 ) { 714 ) {
711 free(matched); 715 free(matched);
712 return; 716 return;