Browse Source

time formats go off of system formats now

Scott Brogden 7 years ago
parent
commit
3a873c0ab9
1 changed files with 5 additions and 0 deletions
  1. 5 0
      CP_Main.cpp

+ 5 - 0
CP_Main.cpp

@@ -160,6 +160,11 @@ BOOL CCP_MainApp::InitInstance()
 
 	LoadLibrary(TEXT("MSFTEDIT.DLL"));
 
+	setlocale(LC_COLLATE, ".OCP"); // sets the sort order
+	setlocale(LC_MONETARY, ".OCP"); // sets the currency formatting rules
+	setlocale(LC_NUMERIC, ".OCP"); // sets the formatting of numerals
+	setlocale(LC_TIME, ".OCP"); // defines the date/time formatting
+
 	//MessageBox(NULL, _T("ditto starting"), _T("d"), MB_OK);
 
 	DittoCommandLineInfo cmdInfo;