mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
Merge branch 'master' into 'master'
json: Allow encoding multibyte UTF-8 sequences See merge request pulseaudio/pulseaudio!854
This commit is contained in:
commit
a1690bfad2
1 changed files with 2 additions and 2 deletions
|
|
@ -763,8 +763,8 @@ static char *pa_json_escape(const char *p) {
|
|||
*output++ = 't';
|
||||
break;
|
||||
default:
|
||||
if (*s < 0x20 || *s > 0x7E) {
|
||||
pa_log("Invalid non-ASCII character: 0x%x", (unsigned int) *s);
|
||||
if (*s < 0x20 || *s == 0x7F) {
|
||||
pa_log("Invalid ASCII character: 0x%x", (unsigned int) *s);
|
||||
pa_xfree(out_string);
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue