diff options
author | Anthony Fok <foka@debian.org> | 2018-06-14 13:37:20 -0600 |
---|---|---|
committer | Iru Cai (vimacs) <mytbk920423@gmail.com> | 2018-06-15 00:43:25 +0000 |
commit | 3ee241328fdb9210a10fa6f1eca2664a5c30fdf5 (patch) | |
tree | c9af6973b1bcf84948368a8fb3ee0c01cd6923c2 /src/terminal/internal/fqterm_decode.cpp | |
parent | 7c1e8b2bde592430934a96d3f6e2815956fc26f1 (diff) | |
download | fqterm-3ee241328fdb9210a10fa6f1eca2664a5c30fdf5.tar.xz |
Fix some minor typos
Credit: "Unknow" was detected by Lintian, see https://bugs.debian.org/898537
Diffstat (limited to 'src/terminal/internal/fqterm_decode.cpp')
-rw-r--r-- | src/terminal/internal/fqterm_decode.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/terminal/internal/fqterm_decode.cpp b/src/terminal/internal/fqterm_decode.cpp index 49aa364..e88be45 100644 --- a/src/terminal/internal/fqterm_decode.cpp +++ b/src/terminal/internal/fqterm_decode.cpp @@ -324,7 +324,7 @@ const char *FQTermDecode::getStateName(const StateOption *state) { } else if (state == VT100StateMachine::title_state_) { return "VT100StateMachine::title_state_"; } else { - return "Unknow"; + return "Unknown"; } } @@ -436,7 +436,7 @@ static int utf8_expected_byte_count(char first_byte) { char expected = 0; if (!(first_byte & 0x80)) - return 0; //1 byte ascii + return 0; //1 byte ASCII else expected++; if (!(first_byte & 0x40)) @@ -463,7 +463,7 @@ static int gdbnbig5_expected_byte_count(char first_byte) { char expected = 0; if (!(first_byte & 0x80)) - return 0; //1 byte ascii + return 0; //1 byte ASCII else expected++; return expected; @@ -582,12 +582,12 @@ int FQTermDecode::processInput(QByteArray& result) // fill letters into char buffer // TODO: this function may contain bug, need double-check. -// 1. input should be ascii-compitable encoding. +// 1. input should be ASCII-compatible encoding. void FQTermDecode::normalInput() { FQ_FUNC_TRACE("ansi", 8); - // TODO_UTF16: check ascii-incompitable encoding. + // TODO_UTF16: check ASCII-incompatible encoding. if (signed(inputData_[dataIndex_]) < 0x20 && signed(inputData_[dataIndex_]) >= 0x00) { // not print char return ; |