diff options
author | 2017-01-18 00:32:12 +0100 | |
---|---|---|
committer | 2017-01-20 22:20:36 +0100 | |
commit | 1ae3e29ea3fd90e5df31d52c5d3860fde7f3cbac (patch) | |
tree | e32ddf77ae8408a1aea8d7abb15f5048bba3ed81 /src/lib/netlist/prg/nltool.cpp | |
parent | d0b6742563ac7f9ed626a89ebd022d09c64dfa4d (diff) |
Assume string literals are UTF8 in netlist code.
At the same time, any char pointer has to be explicitly converted to
pstring by specifying an encoding. Not yet optimal, but certainly better
than what was there before.
Removed unneeded methods from pstring. (nw)
Diffstat (limited to 'src/lib/netlist/prg/nltool.cpp')
-rw-r--r-- | src/lib/netlist/prg/nltool.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/netlist/prg/nltool.cpp b/src/lib/netlist/prg/nltool.cpp index 1d796201fd9..f039cf44ac4 100644 --- a/src/lib/netlist/prg/nltool.cpp +++ b/src/lib/netlist/prg/nltool.cpp @@ -211,7 +211,7 @@ struct input_t if (e != 3) throw netlist::nl_exception(plib::pfmt("error {1} scanning line {2}\n")(e)(line)); m_time = netlist::netlist_time::from_double(t); - m_param = setup.find_param(buf, true); + m_param = setup.find_param(pstring(buf, pstring::UTF8), true); } void setparam() @@ -585,7 +585,7 @@ int main(int argc, char *argv[]) result = c.result(); } /* present result */ - pout_strm.write(result.c_str()); + pout_strm.write(result); } else { |