diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-08-07 19:47:37 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-07 19:47:37 +0800 |
commit | 21ceac090adce9a936c217cc68584ae2964acd72 (patch) | |
tree | 08cde608a9bc25d1a9bb19ff9751ddb5e2da1648 /solc/CommandLineInterface.cpp | |
parent | c6278fbae1e1dac33ebfad7e8d42e071c9e78914 (diff) | |
parent | fba7b7c204de14605432ef9669c737eb833cac13 (diff) | |
download | dexon-solidity-21ceac090adce9a936c217cc68584ae2964acd72.tar.gz dexon-solidity-21ceac090adce9a936c217cc68584ae2964acd72.tar.zst dexon-solidity-21ceac090adce9a936c217cc68584ae2964acd72.zip |
Merge pull request #4592 from asifmallik/fixBackslashBugFinal
Fix backslash bug
Diffstat (limited to 'solc/CommandLineInterface.cpp')
-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 55086e9f..14793759 100644 --- a/solc/CommandLineInterface.cpp +++ b/solc/CommandLineInterface.cpp @@ -424,7 +424,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()); @@ -709,7 +709,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) |