• R/O
  • SSH
  • HTTPS

ttssh2: Commit


Commit MetaInfo

Revision11023 (tree)
Time2023-10-27 23:26:45
Authorzmatsuo

Log Message

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

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

Change Summary

Incremental Difference

--- trunk/ttssh2/ttxssh/ttxssh.c (revision 11022)
+++ trunk/ttssh2/ttxssh/ttxssh.c (revision 11023)
@@ -51,6 +51,7 @@
5151 #include <fcntl.h>
5252 #include <sys/stat.h>
5353 #include <time.h>
54+#include <locale.h> // for setlocale()
5455
5556 #include "resource.h"
5657 #include <commctrl.h>
@@ -4976,6 +4977,7 @@
49764977 // リーク時のブロック番号を元にブレークを仕掛けるには、以下のようにする。
49774978 //_CrtSetBreakAlloc(3228);
49784979 #endif
4980+ setlocale(LC_ALL, "");
49794981 DisableThreadLibraryCalls(hInstance);
49804982 hInst = hInstance;
49814983 pvar = &InstVar;
Show on old repository browser