Skip to content

SetUnixEnvironment() commit - #4174

Merged
laanwj merged 1 commit into
bitcoin:masterfrom
itoffshore:master
May 19, 2014
Merged

laanwj merged 1 commit into
bitcoin:masterfrom
itoffshore:master

Conversation

@itoffshore

Copy link
Copy Markdown
Contributor

This is to fix the locale bug

@itoffshore

Copy link
Copy Markdown
Contributor Author

Combined commit

Comment thread src/qt/bitcoin.cpp Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please define this function in the appropriate header, in this case util.h.

@laanwj

laanwj commented May 12, 2014

Copy link
Copy Markdown
Member

Suggestion: rename the function to SetupEnvironment, always call it, and make it a no-op for windows for now.

N.B. the reason for this, no need to do it in this pull request, but I think some stuff that we now do at the beginning of AppInit2 would also fit better in a SetupEnvironment function:
https://github.com/bitcoin/bitcoin/blob/master/src/init.cpp#L395

@itoffshore

Copy link
Copy Markdown
Contributor Author

This builds & works on my machine with libboost 1.55 - this error from Jenkins is related to the libboost version rather than the function itself ?

util.cpp: In function void SetupEnvironment():
util.cpp:1412: error: codecvt is not a member of boost::filesystem::path

@sipa

sipa commented May 12, 2014

Copy link
Copy Markdown
Member

I believe pulltester build environment has an older boost, with perhaps
boost filesystem v2 instead of v3, which is only partially compatible.

@laanwj

laanwj commented May 12, 2014

Copy link
Copy Markdown
Member

In that case, surround it with:

#if BOOST_FILESYSTEM_VERSION >= 3

Comment thread src/bitcoin-cli.cpp Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move the #ifndef WIN32 to inside the function. Then we can also use it for other OSes.

BTW: I suppose src/test/test_bitcoin.cpp and src/qt/test/test_main.cpp need this too?

@leofidus

Copy link
Copy Markdown

that commit seems to do a lot of not really related things. Are you sure you didn't accidentially include more changes than intended here?

@itoffshore

Copy link
Copy Markdown
Contributor Author

Am trying to do a new clean commit now with just the changes for the
function.

On 05/13/2014 10:42 AM, leofidus wrote:

that commit seems to do a lot of not really related things. Are you
sure you didn't accidentially include more changes than intended here?

—
Reply to this email directly or view it on GitHub
#4174 (comment).

@BitcoinPullTester

Copy link
Copy Markdown

Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/5248ff40997c64cc0fde7aaa67cf94dd38b14899 for binaries and test log.
This test script verifies pulls every time they are updated. It, however, dies sometimes and fails to test properly. If you are waiting on a test, please check timestamps to verify that the test.log is moving at http://jenkins.bluematt.me/pull-tester/current/
Contact BlueMatt on freenode if something looks broken.

@laanwj
laanwj merged commit 5248ff4 into bitcoin:master May 19, 2014
laanwj added a commit that referenced this pull request May 19, 2014
5248ff4 SetupEnvironment() - clean commit (Stuart Cardall)
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants