[ttssh2-commit] [11023] 公開鍵認証で接続したSSHセッションを複製できないことがある

Back to archive index
scmno****@osdn***** scmno****@osdn*****
2023年 10月 27日 (金) 23:26:45 JST


Revision: 11023
          https://osdn.net/projects/ttssh2/scm/svn/commits/11023
Author:   zmatsuo
Date:     2023-10-27 23:26:45 +0900 (Fri, 27 Oct 2023)
Log Message:
-----------
公開鍵認証で接続したSSHセッションを複製できないことがある

- 複製時のコマンドライン作成時に日本語が文字化けする
- setlocale() で設定するようにした

Modified Paths:
--------------
    trunk/ttssh2/ttxssh/ttxssh.c

-------------- next part --------------
Modified: trunk/ttssh2/ttxssh/ttxssh.c
===================================================================
--- trunk/ttssh2/ttxssh/ttxssh.c	2023-10-22 05:02:55 UTC (rev 11022)
+++ trunk/ttssh2/ttxssh/ttxssh.c	2023-10-27 14:26:45 UTC (rev 11023)
@@ -51,6 +51,7 @@
 #include <fcntl.h>
 #include <sys/stat.h>
 #include <time.h>
+#include <locale.h>		// for setlocale()
 
 #include "resource.h"
 #include <commctrl.h>
@@ -4976,6 +4977,7 @@
 		// \x83\x8A\x81[\x83N\x8E\x9E\x82̃u\x83\x8D\x83b\x83N\x94ԍ\x86\x82\xF0\x8C\xB3\x82Ƀu\x83\x8C\x81[\x83N\x82\xF0\x8Ed\x8A|\x82\xAF\x82\xE9\x82ɂ́A\x88ȉ\xBA\x82̂悤\x82ɂ\xB7\x82\xE9\x81B
 		//_CrtSetBreakAlloc(3228);
 #endif
+		setlocale(LC_ALL, "");
 		DisableThreadLibraryCalls(hInstance);
 		hInst = hInstance;
 		pvar = &InstVar;


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