aboutsummaryrefslogtreecommitdiff
path: root/init.cpp
diff options
context:
space:
mode:
authors_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b>2010-07-09 15:29:48 +0000
committers_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b>2010-07-09 15:29:48 +0000
commitf32339e70021775861466636f8a387aaf5ddf728 (patch)
treed0bcc1b33335dc30e04f8e1563508ae7dd5efae4 /init.cpp
parentc8063ff034797a1f8fe90e0ed959392ebdc3807d (diff)
downloadbitcoin-f32339e70021775861466636f8a387aaf5ddf728.tar.xz
switched from wxStandardPaths to GetDefaultDataDir, fixes bug reported by m0mchil when username contains non-lower-ASCII characters
-- version 0.3.1
Diffstat (limited to 'init.cpp')
-rw-r--r--init.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/init.cpp b/init.cpp
index 77c1225d75..e7382d77fa 100644
--- a/init.cpp
+++ b/init.cpp
@@ -4,8 +4,6 @@
#include "headers.h"
-extern string GetDefaultDataDir(); /// todo: delete this later, just used by debug test
-
@@ -430,15 +428,7 @@ bool CMyApp::OnInit2()
printf("Bitcoin version %d.%d.%d%s beta, OS version %s\n", VERSION/10000, (VERSION/100)%100, VERSION%100, pszSubVer, ((string)wxGetOsDescription()).c_str());
printf("System default language is %d %s\n", m_locale.GetSystemLanguage(), ((string)m_locale.GetSysName()).c_str());
printf("Language file %s (%s)\n", (string("locale/") + (string)m_locale.GetCanonicalName() + "/LC_MESSAGES/bitcoin.mo").c_str(), ((string)m_locale.GetLocale()).c_str());
-
- /// debug - for now, just watching if these match
- if (pszSetDataDir[0] == 0)
- {
- if (GetDefaultDataDir() != GetDataDir())
- printf("**** GetDefaultDataDir() %s != %s\n", GetDefaultDataDir().c_str(), GetDataDir().c_str());
- else
- printf("OK GetDefaultDataDir() %s == %s\n", GetDefaultDataDir().c_str(), GetDataDir().c_str());
- }
+ printf("Default data directory %s\n", GetDefaultDataDir().c_str());
if (mapArgs.count("-loadblockindextest"))
{