Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Daniel Pfeifer
KWSys
Commits
2a3f6f6b
Commit
2a3f6f6b
authored
Nov 16, 2016
by
Dāvis Mosāns
Committed by
Brad King
Nov 18, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ConsoleBuf: Add Manager convenience method for UTF-8 pipes
Change-Id: Ib9f72534e2715ca6230b212231e4133e29bcab31
parent
a7e82be0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
ConsoleBuf.hxx.in
ConsoleBuf.hxx.in
+9
-0
No files found.
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
Markdown
is supported
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