diff options
author | Ron Yorston <rmy@pobox.com> | 2014-03-17 15:38:20 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2014-03-17 15:38:20 +0000 |
commit | 8d989e6c6af206f56e8ea596197dd724454097f0 (patch) | |
tree | e4e2cc76771b88b495c91112aea0ca43dd71f3eb | |
parent | bea9034adefaece3803b295ccc18636a5d73a605 (diff) | |
download | busybox-w32-8d989e6c6af206f56e8ea596197dd724454097f0.tar.gz busybox-w32-8d989e6c6af206f56e8ea596197dd724454097f0.tar.bz2 busybox-w32-8d989e6c6af206f56e8ea596197dd724454097f0.zip |
Improved support for characters above 0x7f
-rw-r--r-- | configs/mingw32_defconfig | 4 | ||||
-rw-r--r-- | 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 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Busybox version: 1.23.0.git | 3 | # Busybox version: 1.23.0.git |
4 | # Sun Mar 16 09:56:30 2014 | 4 | # Mon Mar 17 15:33:49 2014 |
5 | # | 5 | # |
6 | CONFIG_HAVE_DOT_CONFIG=y | 6 | CONFIG_HAVE_DOT_CONFIG=y |
7 | # CONFIG_PLATFORM_POSIX is not set | 7 | # CONFIG_PLATFORM_POSIX is not set |
@@ -378,7 +378,7 @@ CONFIG_PATCH=y | |||
378 | CONFIG_SED=y | 378 | CONFIG_SED=y |
379 | CONFIG_VI=y | 379 | CONFIG_VI=y |
380 | CONFIG_FEATURE_VI_MAX_LEN=4096 | 380 | CONFIG_FEATURE_VI_MAX_LEN=4096 |
381 | # CONFIG_FEATURE_VI_8BIT is not set | 381 | CONFIG_FEATURE_VI_8BIT=y |
382 | CONFIG_FEATURE_VI_COLON=y | 382 | CONFIG_FEATURE_VI_COLON=y |
383 | CONFIG_FEATURE_VI_YANKMARK=y | 383 | CONFIG_FEATURE_VI_YANKMARK=y |
384 | CONFIG_FEATURE_VI_SEARCH=y | 384 | 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) | |||
45 | unsigned char c = *d; | 45 | unsigned char c = *d; |
46 | if (c == '\0') | 46 | if (c == '\0') |
47 | break; | 47 | break; |
48 | if (c < ' ' || c >= 0x7f) | 48 | if (c < ' ' || (c >= 0x7f && !ENABLE_PLATFORM_MINGW32)) |
49 | *d = '?'; | 49 | *d = '?'; |
50 | d++; | 50 | d++; |
51 | } | 51 | } |