mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-28 05:45:36 +00:00
Initialize the global charset converter with a dummy so that text output with mxmsg() works before the locale is initialized.
This commit is contained in:
parent
7afb6bf704
commit
c913b2f52c
@ -44,6 +44,9 @@ charset_converter_cptr g_cc_local_utf8;
|
||||
|
||||
std::map<std::string, charset_converter_cptr> charset_converter_c::s_converters;
|
||||
|
||||
charset_converter_c::charset_converter_c() {
|
||||
}
|
||||
|
||||
charset_converter_c::charset_converter_c(const std::string &charset)
|
||||
: m_charset(charset)
|
||||
{
|
||||
|
@ -34,6 +34,7 @@ protected:
|
||||
std::string m_charset;
|
||||
|
||||
public:
|
||||
charset_converter_c();
|
||||
charset_converter_c(const std::string &charset);
|
||||
virtual ~charset_converter_c();
|
||||
|
||||
|
@ -36,8 +36,8 @@ bool g_warning_issued = false;
|
||||
std::string g_stdio_charset;
|
||||
static bool s_mm_stdio_redirected = false;
|
||||
|
||||
charset_converter_cptr g_cc_stdio;
|
||||
counted_ptr<mm_io_c> g_mm_stdio = counted_ptr<mm_io_c>(new mm_stdio_c());
|
||||
charset_converter_cptr g_cc_stdio = charset_converter_cptr(new charset_converter_c);
|
||||
counted_ptr<mm_io_c> g_mm_stdio = counted_ptr<mm_io_c>(new mm_stdio_c);
|
||||
|
||||
void
|
||||
redirect_stdio(mm_io_c *stdio) {
|
||||
|
Loading…
Reference in New Issue
Block a user