Fix backslash bug

This commit is contained in:
Asif Mallik 2018-07-27 15:49:51 +09:00 committed by chriseth
parent 7c9bfb62f9
commit fba7b7c204
2 changed files with 3 additions and 2 deletions

View File

@ -77,6 +77,7 @@ Compiler Features:
Bugfixes: Bugfixes:
* Tests: Fix chain parameters to make ipc tests work with newer versions of cpp-ethereum. * Tests: Fix chain parameters to make ipc tests work with newer versions of cpp-ethereum.
* Code Generator: Fix allocation of byte arrays (zeroed out too much memory). * Code Generator: Fix allocation of byte arrays (zeroed out too much memory).
* Commandline Interface: Correctly handle paths with backslashes on windows.
* Fix NatSpec json output for `@notice` and `@dev` tags on contract definitions. * Fix NatSpec json output for `@notice` and `@dev` tags on contract definitions.
* References Resolver: Enforce ``storage`` as data location for mappings. * References Resolver: Enforce ``storage`` as data location for mappings.
* References Resolver: Report error instead of assertion fail when FunctionType has an undeclared type as parameter. * References Resolver: Report error instead of assertion fail when FunctionType has an undeclared type as parameter.

View File

@ -438,7 +438,7 @@ bool CommandLineInterface::readInputFilesAndConfigureRemappings()
continue; continue;
} }
m_sourceCodes[infile.string()] = dev::readFileAsString(infile.string()); m_sourceCodes[infile.generic_string()] = dev::readFileAsString(infile.string());
path = boost::filesystem::canonical(infile).string(); path = boost::filesystem::canonical(infile).string();
} }
m_allowedDirectories.push_back(boost::filesystem::path(path).remove_filename()); 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."}; return ReadCallback::Result{false, "Not a valid file."};
auto contents = dev::readFileAsString(canonicalPath.string()); auto contents = dev::readFileAsString(canonicalPath.string());
m_sourceCodes[path.string()] = contents; m_sourceCodes[path.generic_string()] = contents;
return ReadCallback::Result{true, contents}; return ReadCallback::Result{true, contents};
} }
catch (Exception const& _exception) catch (Exception const& _exception)