From 3ee241328fdb9210a10fa6f1eca2664a5c30fdf5 Mon Sep 17 00:00:00 2001 From: Anthony Fok Date: Thu, 14 Jun 2018 13:37:20 -0600 Subject: Fix some minor typos Credit: "Unknow" was detected by Lintian, see https://bugs.debian.org/898537 --- src/terminal/internal/fqterm_decode.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/terminal/internal/fqterm_decode.cpp') 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 ; -- cgit v1.2.3