mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Code review changes: stylistic changes, and removed redundant call to set locale.
This commit is contained in:
parent
1b9147d7db
commit
a91bca7937
@ -53,10 +53,11 @@ void version()
|
||||
exit(0);
|
||||
}
|
||||
|
||||
void setEnv() {
|
||||
std::setlocale(LC_ALL, "C");
|
||||
void setEnv()
|
||||
{
|
||||
#if !defined(WIN32) && !defined(MAC_OSX) && !defined(__FreeBSD__) && !defined(__OpenBSD__)
|
||||
if (!std::setlocale(LC_ALL, "")) {
|
||||
if (!std::setlocale(LC_ALL, ""))
|
||||
{
|
||||
setenv("LC_ALL", "C", 1);
|
||||
}
|
||||
#endif
|
||||
|
@ -27,10 +27,11 @@
|
||||
|
||||
using namespace std;
|
||||
|
||||
void setEnv() {
|
||||
std::setlocale(LC_ALL, "C");
|
||||
void setEnv()
|
||||
{
|
||||
#if !defined(WIN32) && !defined(MAC_OSX) && !defined(__FreeBSD__) && !defined(__OpenBSD__)
|
||||
if (!std::setlocale(LC_ALL, "")) {
|
||||
if (!std::setlocale(LC_ALL, ""))
|
||||
{
|
||||
setenv("LC_ALL", "C", 1);
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user