rd

tiny cpt ramdisk image generator meant for system rescue
git clone git://git.ckyln.com/rd
Log | Files | Refs | README | LICENSE

print-unicode.patch (553B)


      1 diff --git a/libbb/printable_string.c b/libbb/printable_string.c
      2 index a814fd0..f4c7b00 100644
      3 --- a/libbb/printable_string.c
      4 +++ b/libbb/printable_string.c
      5 @@ -28,8 +28,6 @@ const char* FAST_FUNC printable_string2(uni_stat_t *stats, const char *str)
      6  		}
      7  		if (c < ' ')
      8  			break;
      9 -		if (c >= 0x7f)
     10 -			break;
     11  		s++;
     12  	}
     13  
     14 @@ -42,7 +40,7 @@ const char* FAST_FUNC printable_string2(uni_stat_t *stats, const char *str)
     15  			unsigned char c = *d;
     16  			if (c == '\0')
     17  				break;
     18 -			if (c < ' ' || c >= 0x7f)
     19 +			if (c < ' ')
     20  				*d = '?';
     21  			d++;
     22  		}