diff options
author | KWSys Upstream <kwrobot@kitware.com> | 2016-11-18 13:56:10 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-11-18 14:13:39 (GMT) |
commit | 0a56e6fe35b89778a7e08a0341d3b08450aebd19 (patch) | |
tree | 2f721b6684ad51dd6482451bdc8f84a72a4287e9 /ConsoleBuf.hxx.in | |
parent | 572ac897733f0b6fe7baf67006db0e8f182db59c (diff) | |
download | CMake-0a56e6fe35b89778a7e08a0341d3b08450aebd19.zip CMake-0a56e6fe35b89778a7e08a0341d3b08450aebd19.tar.gz CMake-0a56e6fe35b89778a7e08a0341d3b08450aebd19.tar.bz2 |
KWSys 2016-11-18 (2a3f6f6b)
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
Diffstat (limited to 'ConsoleBuf.hxx.in')
-rw-r--r-- | ConsoleBuf.hxx.in | 11 |
1 files changed, 11 insertions, 0 deletions
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<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) { |