gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r684 - GNUnet/src/util/win


From: durner
Subject: [GNUnet-SVN] r684 - GNUnet/src/util/win
Date: Fri, 22 Apr 2005 14:03:21 -0700 (PDT)

Author: durner
Date: 2005-04-22 14:03:12 -0700 (Fri, 22 Apr 2005)
New Revision: 684

Modified:
   GNUnet/src/util/win/winproc.c
Log:
Select right codepage

Modified: GNUnet/src/util/win/winproc.c
===================================================================
--- GNUnet/src/util/win/winproc.c       2005-04-22 20:08:34 UTC (rev 683)
+++ GNUnet/src/util/win/winproc.c       2005-04-22 21:03:12 UTC (rev 684)
@@ -509,6 +509,7 @@
   long lRet;
   WSADATA wsaData;
   enum {ROOT, USER, HOME} eAction = ROOT;
+  UINT uiCP;
 
   /* Init path translation */
   if((lRet = DetermineRootDir()) == ERROR_SUCCESS)
@@ -632,8 +633,9 @@
   }
 
   /* Use ANSI codepage for console IO */
-  SetConsoleCP(CP_ACP);
-  SetConsoleOutputCP(CP_ACP);
+  uiCP = GetACP();
+  SetConsoleCP(uiCP);
+  SetConsoleOutputCP(uiCP);
   setlocale( LC_ALL, ".OCP" );
 
   /* Initialize COM library */





reply via email to

[Prev in Thread] Current Thread [Next in Thread]