diff options
author | Asif Mallik <asif.mallik1@gmail.com> | 2018-07-27 14:49:51 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-08-07 00:17:56 +0800 |
commit | fba7b7c204de14605432ef9669c737eb833cac13 (patch) | |
tree | 054c0bd3a5808c60ee7c1833de896a27cefbf57d /solc | |
parent | 7c9bfb62f9047f6ed18b095ba756ffe2511f0ec8 (diff) | |
download | dexon-solidity-fba7b7c204de14605432ef9669c737eb833cac13.tar dexon-solidity-fba7b7c204de14605432ef9669c737eb833cac13.tar.gz dexon-solidity-fba7b7c204de14605432ef9669c737eb833cac13.tar.bz2 dexon-solidity-fba7b7c204de14605432ef9669c737eb833cac13.tar.lz dexon-solidity-fba7b7c204de14605432ef9669c737eb833cac13.tar.xz dexon-solidity-fba7b7c204de14605432ef9669c737eb833cac13.tar.zst dexon-solidity-fba7b7c204de14605432ef9669c737eb833cac13.zip |
Fix backslash bug
Diffstat (limited to 'solc')
-rw-r--r-- | solc/CommandLineInterface.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/solc/CommandLineInterface.cpp b/solc/CommandLineInterface.cpp index 6a768a00..9bfcc4ef 100644 --- a/solc/CommandLineInterface.cpp +++ b/solc/CommandLineInterface.cpp @@ -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) |