summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-04-28 09:58:20 +0200
committerwm4 <wm4@nowhere>2015-04-28 09:58:28 +0200
commitf77e3cbf0ca7a91fc773f631828e95584e3ad146 (patch)
tree939bb2025143b0da2dbe8f198b3fd426847fc2c2 /player
parent43b6b376dc1366c5c0c7f95e3fc3cc249a62a214 (diff)
downloadmpv-f77e3cbf0ca7a91fc773f631828e95584e3ad146.tar.bz2
mpv-f77e3cbf0ca7a91fc773f631828e95584e3ad146.tar.xz
json: fix UTF-8 handling
We escape only characters below 32, plus " and \. UTF-8 should be apssed through verbatim. Since char can be signed (and usually is), the check broke and happened to escape UTF-8 encoded bytes too. This broke UTF-8 completely. Note that we don't check for broken or invalid UTF-8, such as described both in the client API and IPC docs. Fixes #1874.
Diffstat (limited to 'player')
0 files changed, 0 insertions, 0 deletions