Commit 2a3f6f6b authored by Dāvis Mosāns's avatar Dāvis Mosāns Committed by Brad King

ConsoleBuf: Add Manager convenience method for UTF-8 pipes

Change-Id: Ib9f72534e2715ca6230b212231e4133e29bcab31
parent a7e82be0
......@@ -50,6 +50,15 @@ public:
BasicConsoleBuf<CharT, Traits>* GetConsoleBuf() { return m_consolebuf; }
void SetUTF8Pipes()
{
if (m_consolebuf) {
m_consolebuf->input_pipe_codepage = CP_UTF8;
m_consolebuf->output_pipe_codepage = CP_UTF8;
m_consolebuf->activateCodepageChange();
}
}
~Manager()
{
if (m_consolebuf) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment