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/plib/putil.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/plib/putil.cpp')
-rw-r--r-- | src/lib/netlist/plib/putil.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/netlist/plib/putil.cpp b/src/lib/netlist/plib/putil.cpp index 39e1b444f33..b21f945662c 100644 --- a/src/lib/netlist/plib/putil.cpp +++ b/src/lib/netlist/plib/putil.cpp @@ -36,7 +36,7 @@ namespace plib if (getenv(var.c_str()) == nullptr) return default_val; else - return pstring(getenv(var.c_str())); + return pstring(getenv(var.c_str()), pstring::UTF8); } } @@ -139,7 +139,7 @@ namespace plib if (*str == ',') { *bufp = 0; - return pstring(buf); + return pstring(buf, pstring::UTF8); } else if (*str != ' ') *bufp++ = *str; @@ -152,6 +152,6 @@ namespace plib str++; } *bufp = 0; - return pstring(buf); + return pstring(buf, pstring::UTF8); } } // namespace plib |