[Ttssh2-commit] [7461] 一部のunicodeがうまく表示できなくなったため対策

scmno****@osdn***** scmno****@osdn*****
2019年 3月 6日 (水) 01:22:05 JST


Revision: 7461
          http://sourceforge.jp/projects/ttssh2/scm/svn/commits/7461
Author:   zmatsuo
Date:     2019-03-06 01:22:05 +0900 (Wed, 06 Mar 2019)
Log Message:
-----------
一部のunicodeがうまく表示できなくなったため対策
U+2014 EM DASH
U+2016 DOUBLE VERTICAL LINE
U+203E OVERLINE
U+2212 MINUS SIGN
U+301C WAVE DASH

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

-------------- next part --------------
Modified: trunk/teraterm/teraterm/vtterm.c
===================================================================
--- trunk/teraterm/teraterm/vtterm.c	2019-03-05 07:51:03 UTC (rev 7460)
+++ trunk/teraterm/teraterm/vtterm.c	2019-03-05 16:22:05 UTC (rev 7461)
@@ -5486,6 +5486,10 @@
 
 	// Unicode -> \x93\xE0\x95\x94\x83R\x81[\x83h(ts.CodePage)\x82֕ϊ\xB7\x82\xB5\x82ďo\x97\xCD
 	ret = WideCharToMultiByte(ts.CodePage, 0, &wchar, 1, mbchar, 2, NULL, NULL);
+	if (ret == 1 && mbchar[0] == '?' && code != '?') {
+		// \x95ϊ\xB7\x82ł\xAB\x82Ȃ\xA9\x82\xC1\x82\xBD\x82Ƃ\xAB\x81Aret=1, '?' \x82\xF0\x95Ԃ\xB5\x82Ă\xAD\x82\xE9
+		ret = 0;
+	}
 	switch (ret) {
 	case 0:
 		if (ts.CodePage == 932) {


Ttssh2-commit メーリングリストの案内