mirror of
https://github.com/zeromq/cppzmq.git
synced 2025-05-17 20:21:38 +02:00
Fix ASCII character detection in conversion to std::string
the 'Space' ASCII character should also be recognized as such.
This commit is contained in:
parent
81c2938faa
commit
f910c90149
2
zmq.hpp
2
zmq.hpp
@ -544,7 +544,7 @@ class message_t
|
|||||||
while (size--) {
|
while (size--) {
|
||||||
byte = *msg_data++;
|
byte = *msg_data++;
|
||||||
|
|
||||||
is_ascii[1] = (byte >= 33 && byte < 127);
|
is_ascii[1] = (byte >= 32 && byte < 127);
|
||||||
if (is_ascii[1] != is_ascii[0])
|
if (is_ascii[1] != is_ascii[0])
|
||||||
os << " "; // Separate text/non text
|
os << " "; // Separate text/non text
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user