0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 03:52:22 +02:00
mpv/player
wm4 21322a016e client API: check locale, and reject anything other than "C" locale
Sigh...

The C locale system is incredibly shitty, and if used, breaks basic
string functions. The locale can change the decimal mark from "." to
",", which affects conversion between floats and strings: snprintf() and
strtod() respect the locale decimal mark, and change behavior. (What's
even better, the behavior of these functions can change asynchronously,
if setlocale() is called after threads were started.)

So just check the locale in the client API, and refuse to work if it's
wrong. This also makes the lib print to stderr, which I consider the
lesser evil in this specific situation.
2015-01-20 21:10:44 +01:00
..
lua ytdl_hook: Check for empty playlists 2015-01-16 06:59:16 +01:00
timeline tl_matroska: fix minor memory leak in error case 2015-01-12 13:20:56 +01:00
audio.c audio: don't force any parameters if spdif is used 2015-01-20 14:33:08 +01:00
client.c client API: check locale, and reject anything other than "C" locale 2015-01-20 21:10:44 +01:00
client.h vo_opengl_cb: simplify API uninitialization 2014-12-31 20:31:19 +01:00
command.c x11: add --on-all-workspaces option and property 2015-01-16 23:38:47 +01:00
command.h client API: notify API user on event queue overflow 2015-01-19 21:26:42 +01:00
configfiles.c options: add option for ignoring patch in resume mechanism 2014-12-13 00:04:08 +01:00
core.h player: don't enable demuxer readahead before selecting tracks 2015-01-16 20:22:43 +01:00
discnav.c osc, dvd, bd: fix mouse state when changing menu modes 2014-12-05 16:04:04 +01:00
loadfile.c player: don't enable demuxer readahead before selecting tracks 2015-01-16 20:22:43 +01:00
lua.c client API: be more lenient about mpv_suspend/resume mismatches 2014-12-15 14:44:47 +01:00
main_fn.c cocoa: fix build by using the correct HAVE_* macro 2014-08-06 09:31:59 +02:00
main.c win32: remove check for SetPriorityClass() 2015-01-20 15:18:51 +01:00
misc.c player: don't display zero duration for files with unknown duration 2014-10-29 21:54:59 +01:00
osd.c command: improve A-B loop behavior 2014-11-18 20:28:54 +01:00
playloop.c demux_disc: pass seek flags to stream layer 2015-01-19 21:26:48 +01:00
screenshot.c Move compat/ and bstr/ directory contents somewhere else 2014-08-29 12:31:52 +02:00
screenshot.h
scripting.c scripting: fix/improve deprecation message 2014-12-15 06:24:05 +01:00
sub.c player: fix crash wtih --secondary-sid 2015-01-13 02:45:51 +01:00
video.c player: mention mpv encoding support for transcoding in desync. warning 2015-01-19 18:04:45 +01:00