diff options
author | Ron Yorston <rmy@pobox.com> | 2019-01-05 08:58:09 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2019-01-05 08:58:09 +0000 |
commit | 190673be84cd90c8ea23f0a6e0ff69544d75a93c (patch) | |
tree | de7935ca0347f9fe5ea2460a652631ead0c90274 | |
parent | 0ffd8b3261e764179572d58179ae8e2c21635220 (diff) | |
download | busybox-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.c | 4 |
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; |