Revision: 7642 https://osdn.net/projects/ttssh2/scm/svn/commits/7642 Author: zmatsuo Date: 2019-05-06 22:40:58 +0900 (Mon, 06 May 2019) Log Message: ----------- 受信データの文字コードがUTF-8の時、UTF-8の4byte目のチェックが誤っていた Modified Paths: -------------- trunk/teraterm/teraterm/vtterm.c -------------- next part -------------- Modified: trunk/teraterm/teraterm/vtterm.c =================================================================== --- trunk/teraterm/teraterm/vtterm.c 2019-05-01 14:51:20 UTC (rev 7641) +++ trunk/teraterm/teraterm/vtterm.c 2019-05-06 13:40:58 UTC (rev 7642) @@ -5639,7 +5639,7 @@ if ((buf[0] & 0xf1) == 0xf0 && (buf[1] & 0xc0) == 0x80 && (buf[2] & 0xc0) == 0x80 && - (buf[2] & 0xc0) == 0x80) + (buf[3] & 0xc0) == 0x80) { // 4\x83o\x83C\x83g\x83R\x81[\x83h\x82̏ꍇ code = ((buf[0] & 0x07) << 18); code |= ((buf[1] & 0x3f) << 12);