mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix backslash bug
This commit is contained in:
@@ -438,7 +438,7 @@ bool CommandLineInterface::readInputFilesAndConfigureRemappings()
|
||||
continue;
|
||||
}
|
||||
|
||||
m_sourceCodes[infile.string()] = dev::readFileAsString(infile.string());
|
||||
m_sourceCodes[infile.generic_string()] = dev::readFileAsString(infile.string());
|
||||
path = boost::filesystem::canonical(infile).string();
|
||||
}
|
||||
m_allowedDirectories.push_back(boost::filesystem::path(path).remove_filename());
|
||||
@@ -724,7 +724,7 @@ bool CommandLineInterface::processInput()
|
||||
return ReadCallback::Result{false, "Not a valid file."};
|
||||
|
||||
auto contents = dev::readFileAsString(canonicalPath.string());
|
||||
m_sourceCodes[path.string()] = contents;
|
||||
m_sourceCodes[path.generic_string()] = contents;
|
||||
return ReadCallback::Result{true, contents};
|
||||
}
|
||||
catch (Exception const& _exception)
|
||||
|
||||
Reference in New Issue
Block a user