mirror of
https://github.com/zeromq/cppzmq.git
synced 2025-05-17 04:07:51 +02:00
Merge pull request #340 from boldorider4/master
Fix ASCII character detection in conversion to std::string
This commit is contained in:
commit
ef2e3284c2
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