From 74eefaeea74fca000843ca4b8770db945a2f7e3a Mon Sep 17 00:00:00 2001 From: MakarovGCI2018 <44312997+MakarovGCI2018@users.noreply.github.com> Date: Fri, 14 Dec 2018 22:36:35 +0200 Subject: [PATCH] [FEATURE] Added support for non-Latin characters in stdout (#1056) * Update ccextractor.c * Update CHANGES.TXT --- docs/CHANGES.TXT | 1 + src/ccextractor.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/docs/CHANGES.TXT b/docs/CHANGES.TXT index cb32ab54..0c3b2800 100644 --- a/docs/CHANGES.TXT +++ b/docs/CHANGES.TXT @@ -8,6 +8,7 @@ - Fix: Enable printing hdtv stats to console. - Fix: Many typos in comments and output messages - Fix: Ignore Visual Studio temporary project files +- New: Add support for non-Latin characters in stdout 0.87 (2018-10-23) ----------------- diff --git a/src/ccextractor.c b/src/ccextractor.c index 35762807..cdd9dd1e 100644 --- a/src/ccextractor.c +++ b/src/ccextractor.c @@ -5,6 +5,7 @@ License: GPL 2.0 */ #include "ccextractor.h" #include +#include volatile int terminate_asap = 0; @@ -502,6 +503,7 @@ int api_param_count(struct ccx_s_options* api_options) int main(int argc, char* argv[]) { + setlocale(LC_ALL, ""); struct ccx_s_options* api_options = api_init_options(); check_configuration_file(*api_options); #ifdef PYTHON_API