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 /libbb | |
parent | bea9034adefaece3803b295ccc18636a5d73a605 (diff) | |
download | busybox-w32-8d989e6c6af206f56e8ea596197dd724454097f0.tar.gz busybox-w32-8d989e6c6af206f56e8ea596197dd724454097f0.tar.bz2 busybox-w32-8d989e6c6af206f56e8ea596197dd724454097f0.zip |
Improved support for characters above 0x7f
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/printable_string.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 | } |