summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2009-06-13 15:56:52 -0400
committerFrank Ch. Eigler <fche@elastic.org>2009-06-13 15:56:52 -0400
commitb818f048bb5edca2bde3b33fdbe7e42451eb3c6e (patch)
tree72d7765f8e0285ed385c32f22ed1a0268520ef57
parent6a7dc7d9c3df7d5d722f0702a0a0c8d55591006e (diff)
downloadsystemtap-steved-b818f048bb5edca2bde3b33fdbe7e42451eb3c6e.tar.gz
systemtap-steved-b818f048bb5edca2bde3b33fdbe7e42451eb3c6e.tar.xz
systemtap-steved-b818f048bb5edca2bde3b33fdbe7e42451eb3c6e.zip
PR10277: fix \octal escaping of utf-8 characters in path names etc.
* util.h (lex_cast_qstring): Use unsigned rather than signed chars.
-rw-r--r--util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.h b/util.h
index 175f1f40..63e41f9a 100644
--- a/util.h
+++ b/util.h
@@ -70,7 +70,7 @@ lex_cast_qstring(IN const & in)
out2 += '"';
for (unsigned i=0; i<out.length(); i++)
{
- char c = out[i];
+ unsigned char c = out[i];
if (! isprint(c))
{
out2 += '\\';