Merge pull request #340 from boldorider4/master

Fix ASCII character detection in conversion to std::string
This commit is contained in:
Simon Giesecke
2019-08-30 13:04:19 +02:00
committed by GitHub

View File

@@ -544,7 +544,7 @@ class message_t
while (size--) {
byte = *msg_data++;
is_ascii[1] = (byte >= 33 && byte < 127);
is_ascii[1] = (byte >= 32 && byte < 127);
if (is_ascii[1] != is_ascii[0])
os << " "; // Separate text/non text