Skip to content

Commit b00402d

Browse files
committed
Enable UTF-8 mode on Windows
1 parent 2bd46da commit b00402d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/cyanrip_main.c

+8
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
#include <getopt.h>
2121
#include <sys/stat.h>
2222

23+
#ifdef _WIN32
24+
#include <locale.h>
25+
#endif
26+
2327
#include <libavutil/bprint.h>
2428
#include <libavutil/avstring.h>
2529
#include <libavutil/time.h>
@@ -1387,6 +1391,10 @@ int main(int argc, char **argv)
13871391
cyanrip_ctx *ctx = NULL;
13881392
cyanrip_settings settings = { 0 };
13891393

1394+
#ifdef _WIN32
1395+
setlocale(LC_ALL, ".UTF8");
1396+
#endif
1397+
13901398
av_log_set_level(AV_LOG_QUIET);
13911399

13921400
if (signal(SIGINT, on_quit_signal) == SIG_ERR)

0 commit comments

Comments
 (0)