Mercurial > hg > octave-lyh
changeset 13631:9ad313bcee2d
Possible fixed Andriys bug with russian symbols.
author | Jacob Dawid <jacob.dawid@googlemail.com> |
---|---|
date | Fri, 19 Aug 2011 01:04:20 +0200 |
parents | 36377bdd91f7 |
children | 815213e9773d |
files | gui/src/FileEditorMdiSubWindow.cpp gui/src/OctaveTerminal.cpp |
diffstat | 2 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/src/FileEditorMdiSubWindow.cpp +++ b/gui/src/FileEditorMdiSubWindow.cpp @@ -373,6 +373,7 @@ m_editor->autoCompleteFromAll(); m_editor->setAutoCompletionSource(QsciScintilla::AcsAPIs); m_editor->setAutoCompletionThreshold (3); + m_editor->setUtf8 (true); // The Actions
--- a/gui/src/OctaveTerminal.cpp +++ b/gui/src/OctaveTerminal.cpp @@ -55,6 +55,7 @@ m_session->setDarkBackground (true); connect (m_session, SIGNAL(receivedData(QByteArray)), this, SLOT(handleReceivedData(QByteArray))); + int fdm, fds; if (openpty (&fdm, &fds, 0, 0, 0) < 0) { @@ -85,7 +86,7 @@ //QByteArray textToSend; //textToSend += QString::fromUtf8()); - m_session->sendText(keyEvent->text ()); + m_session->sendText (keyEvent->text ()); /* bool emitKeyPressSignal = true;