X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fstrings%2Futils.cpp;h=748d717464690851585e22f9ccdc45da5885eabc;hp=eb2142d5be153b68c405a26a96dba0856f3e4091;hb=HEAD;hpb=31ab69904294bcbc0f38e4d401fcca620f7c6f61 diff --git a/source/strings/utils.cpp b/source/strings/utils.cpp index eb2142d..748d717 100644 --- a/source/strings/utils.cpp +++ b/source/strings/utils.cpp @@ -258,7 +258,7 @@ string c_escape(const string &str, bool escape_8bit) result += "\\\'"; else if(c=='\\') result += "\\\\"; - else if(static_cast(c)<' ' || (escape_8bit && (c&0x80))) + else if(static_cast(c)<' ' || c==0x7F || (escape_8bit && (c&0x80))) { char buf[4] = { '\\', 0 }; for(unsigned j=0; j<3; ++j)