Commit c1e76511 authored by twanvl's avatar twanvl

fixed non-unicode build

parent 93c2f87d
...@@ -150,11 +150,13 @@ void CLISetInterface::handleCommand(const String& command) { ...@@ -150,11 +150,13 @@ void CLISetInterface::handleCommand(const String& command) {
if (arg.empty()) { if (arg.empty()) {
cli.showError(_("Give a shell command to execute.")); cli.showError(_("Give a shell command to execute."));
} else { } else {
#ifdef __WXMSW__ #if UNICODE
_wsystem(arg.c_str()); #ifdef __WXMSW__
#elif UNICODE _wsystem(arg.c_str()); // TODO: is this function available on other platforms?
wxCharBuffer buf = arg.fn_str(); #else
system(buf); wxCharBuffer buf = arg.fn_str();
system(buf);
#endif
#else #else
system(arg.c_str()); system(arg.c_str());
#endif #endif
......
...@@ -73,6 +73,7 @@ const Char* version_suffix = _(" (beta, ascii build)"); ...@@ -73,6 +73,7 @@ const Char* version_suffix = _(" (beta, ascii build)");
* 0.3.4 : html export; choice rendering based on scripted 'image' * 0.3.4 : html export; choice rendering based on scripted 'image'
* 0.3.5 : word lists, symbol font 'as text' * 0.3.5 : word lists, symbol font 'as text'
* 0.3.6 : free rotation, rotation behaviour changed. * 0.3.6 : free rotation, rotation behaviour changed.
* 0.3.7 : scripting language changes (@ operator, stricter type conversion).
*/ */
const Version file_version_locale = 307; // 0.3.7 const Version file_version_locale = 307; // 0.3.7
const Version file_version_set = 306; // 0.3.6 const Version file_version_set = 306; // 0.3.6
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment