[ttssh2-commit] [10320] デバグ用のUnicodeの文字列長を修正

Back to archive index
scmno****@osdn***** scmno****@osdn*****
2022年 10月 16日 (日) 14:37:08 JST


Revision: 10320
          https://osdn.net/projects/ttssh2/scm/svn/commits/10320
Author:   zmatsuo
Date:     2022-10-16 14:37:07 +0900 (Sun, 16 Oct 2022)
Log Message:
-----------
デバグ用のUnicodeの文字列長を修正

- r10308

Revision Links:
--------------
    https://osdn.net/projects/ttssh2/scm/svn/commits/10308

Modified Paths:
--------------
    trunk/teraterm/teraterm/buffer.c

-------------- next part --------------
Modified: trunk/teraterm/teraterm/buffer.c
===================================================================
--- trunk/teraterm/teraterm/buffer.c	2022-10-16 05:36:52 UTC (rev 10319)
+++ trunk/teraterm/teraterm/buffer.c	2022-10-16 05:37:07 UTC (rev 10320)
@@ -5478,8 +5478,8 @@
 static wchar_t *UnicodeCodePointStr(char32_t u32)
 {
 	const wchar_t *format =
-		u32 < 0x1000 ? L"U+%04x" :
-		u32 < 0x10000 ? L"U+%05x" :  L"U+%06x";
+		u32 < 0x10000 ? L"U+%04x" :
+		u32 < 0x100000 ? L"U+%05x" :  L"U+%06x";
 	wchar_t *str;
 	aswprintf(&str, format, u32);
 	return str;


ttssh2-commit メーリングリストの案内
Back to archive index