pulseaudio/src
Sophie Hirn 40115256b6 json: Allow encoding multibyte UTF-8 sequences
The current implementation rejects all input with bytes > 0x7E, which includes
all multibyte UTF-8 sequences.  According to ECMA-404, Section 9, only double
quotation marks, backslashes, and characters 0x00 - 0x1F must be escaped
in JSON strings, so non-ascii bytes can just be passed without escaping.
This also mirrors what the decoder does above.

Of course this allows invalid UTF-8 characters to be encoded.  Checks for this
could be added as well, but at least the decoder does not seem to do that.
And from what I can tell from a quick glance, the text output path does not
check that either.

Fixes: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/issues/1310
2025-12-18 20:35:27 +00:00
..
daemon daemon/meson.build: Install dbus policy in /usr, not /etc 2023-04-21 20:10:24 +00:00
modules rtp-recv: Remove inappropriate byte order conversion 2024-08-21 13:22:14 +00:00
pulse meson: fix usage as subproject 2025-11-04 01:13:27 +00:00
pulsecore json: Allow encoding multibyte UTF-8 sequences 2025-12-18 20:35:27 +00:00
tests meson: doxygen and tests to feature options 2025-11-04 01:13:27 +00:00
utils pactl: add JSON output format 2025-09-28 12:25:49 -03:00
.gitignore tests: Add resampler rewind test 2021-11-03 18:37:31 +00:00
depmod.py update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
meson.build meson: doxygen and tests to feature options 2025-11-04 01:13:27 +00:00