From 8d989e6c6af206f56e8ea596197dd724454097f0 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Mon, 17 Mar 2014 15:38:20 +0000 Subject: Improved support for characters above 0x7f --- configs/mingw32_defconfig | 4 ++-- libbb/printable_string.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/configs/mingw32_defconfig b/configs/mingw32_defconfig index b0db59d21..3eb7798b3 100644 --- a/configs/mingw32_defconfig +++ b/configs/mingw32_defconfig @@ -1,7 +1,7 @@ # # Automatically generated make config: don't edit # Busybox version: 1.23.0.git -# Sun Mar 16 09:56:30 2014 +# Mon Mar 17 15:33:49 2014 # CONFIG_HAVE_DOT_CONFIG=y # CONFIG_PLATFORM_POSIX is not set @@ -378,7 +378,7 @@ CONFIG_PATCH=y CONFIG_SED=y CONFIG_VI=y CONFIG_FEATURE_VI_MAX_LEN=4096 -# CONFIG_FEATURE_VI_8BIT is not set +CONFIG_FEATURE_VI_8BIT=y CONFIG_FEATURE_VI_COLON=y CONFIG_FEATURE_VI_YANKMARK=y CONFIG_FEATURE_VI_SEARCH=y diff --git a/libbb/printable_string.c b/libbb/printable_string.c index a316f60de..3e768d0b9 100644 --- a/libbb/printable_string.c +++ b/libbb/printable_string.c @@ -45,7 +45,7 @@ const char* FAST_FUNC printable_string(uni_stat_t *stats, const char *str) unsigned char c = *d; if (c == '\0') break; - if (c < ' ' || c >= 0x7f) + if (c < ' ' || (c >= 0x7f && !ENABLE_PLATFORM_MINGW32)) *d = '?'; d++; } -- cgit v1.2.3-55-g6feb