Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Chuck Atkins
KWSys
Commits
2a3f6f6b
Commit
2a3f6f6b
authored
Nov 16, 2016
by
Dāvis Mosāns
Committed by
Brad King
Nov 18, 2016
Browse files
ConsoleBuf: Add Manager convenience method for UTF-8 pipes
Change-Id: Ib9f72534e2715ca6230b212231e4133e29bcab31
parent
a7e82be0
Changes
1
Hide whitespace changes
Inline
Side-by-side
ConsoleBuf.hxx.in
View file @
2a3f6f6b
...
...
@@ -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) {
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment