Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Video AG Infrastruktur
ffworker
Commits
6ac10428
Commit
6ac10428
authored
Nov 30, 2017
by
Julian Rother
Browse files
Fixed control character enconding in jencode
parent
30c0a4cf
Changes
1
Show whitespace changes
Inline
Side-by-side
util/jescape.c
View file @
6ac10428
...
@@ -29,8 +29,8 @@ char *jescape(char *s)
...
@@ -29,8 +29,8 @@ char *jescape(char *s)
case
'\t'
:
case
'\t'
:
fputs
(
"
\\
t"
,
stream
);
break
;
fputs
(
"
\\
t"
,
stream
);
break
;
default:
default:
if
(
*
s
<=
0x1f
)
if
(
*
s
<=
0x1f
&&
*
s
>=
0
)
fprintf
(
stream
,
"
\\
u%04x"
,
*
s
);
fprintf
(
stream
,
"
\\
u%04
hh
x"
,
*
s
);
else
else
fputc
(
*
s
,
stream
);
fputc
(
*
s
,
stream
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment