Develop and Download Open Source Software

Browse Subversion Repository

Diff of /branches/ttcomtester/teraterm/teraterm/commlib.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3926 by yutakapon, Mon Jun 7 14:01:51 2010 UTC revision 3932 by doda, Wed Jun 23 03:00:38 2010 UTC
# Line 23  Line 23 
23  #include "WSAAsyncGetAddrInfo.h"  #include "WSAAsyncGetAddrInfo.h"
24  #endif /* NO_INET6 */  #endif /* NO_INET6 */
25  #include <time.h>  #include <time.h>
26    #include <locale.h>
27    
28  static SOCKET OpenSocket(PComVar);  static SOCKET OpenSocket(PComVar);
29  static void AsyncConnect(PComVar);  static void AsyncConnect(PComVar);
# Line 286  void CommOpen(HWND HW, PTTSet ts, PComVa Line 287  void CommOpen(HWND HW, PTTSet ts, PComVa
287          cv->TelCRSendEcho = FALSE;          cv->TelCRSendEcho = FALSE;
288          cv->TelAutoDetect = ts->TelAutoDetect; /* TTPLUG */          cv->TelAutoDetect = ts->TelAutoDetect; /* TTPLUG */
289          cv->Locale = ts->Locale;          cv->Locale = ts->Locale;
290            cv->locale = _create_locale(LC_ALL, cv->Locale);
291          cv->CodePage = &ts->CodePage;          cv->CodePage = &ts->CodePage;
292          cv->ConnetingTimeout = &ts->ConnectingTimeout;          cv->ConnetingTimeout = &ts->ConnectingTimeout;
293          cv->LastSendTime = time(NULL);          cv->LastSendTime = time(NULL);
# Line 766  void CommClose(PComVar cv) Line 768  void CommClose(PComVar cv)
768          }          }
769          cv->ComID = INVALID_HANDLE_VALUE;          cv->ComID = INVALID_HANDLE_VALUE;
770          cv->PortType = 0;          cv->PortType = 0;
771    
772            _free_locale(cv->locale);
773  }  }
774    
775  void CommProcRRQ(PComVar cv)  void CommProcRRQ(PComVar cv)

Legend:
Removed from v.3926  
changed lines
  Added in v.3932

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26