From 0a56e6fe35b89778a7e08a0341d3b08450aebd19 Mon Sep 17 00:00:00 2001 From: KWSys Upstream Date: Fri, 18 Nov 2016 08:56:10 -0500 Subject: KWSys 2016-11-18 (2a3f6f6b) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Code extracted from: http://public.kitware.com/KWSys.git at commit 2a3f6f6b9098d10afb05e894faf262efa22f38b8 (master). Upstream Shortlog ----------------- Dāvis Mosāns (2): a7e82be0 ConsoleBuf: Expose Manager ConsoleBuf to be accessible 2a3f6f6b ConsoleBuf: Add Manager convenience method for UTF-8 pipes --- ConsoleBuf.hxx.in | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ConsoleBuf.hxx.in b/ConsoleBuf.hxx.in index 34c69a0..717462e 100644 --- a/ConsoleBuf.hxx.in +++ b/ConsoleBuf.hxx.in @@ -48,6 +48,17 @@ public: }; } + BasicConsoleBuf* 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) { -- cgit v0.12