Strings must be wide in Unicode mode.

This commit is contained in:
Moritz Bunkus 2005-02-26 22:59:18 +00:00
parent 0e0a43d708
commit d582ecc89e
2 changed files with 8 additions and 5 deletions

View File

@ -1,5 +1,8 @@
2005-02-26 Moritz Bunkus <moritz@bunkus.org>
* mmg: bug fix: The job status in the job runner dialog was broken
on Unicode builds on all systems.
* mmg: bug fix: "Splitting by time" was not selectable on Windows
Unicode builds (problem with wxWidgets 2.5.3).

View File

@ -274,7 +274,7 @@ void
job_run_dialog::on_end_process(wxProcessEvent &evt) {
int exit_code, ndx;
wxString s;
const char *status;
const wxChar *status;
process_input();
@ -282,16 +282,16 @@ job_run_dialog::on_end_process(wxProcessEvent &evt) {
exit_code = evt.GetExitCode();
if (abort) {
jobs[ndx].status = JOBS_ABORTED;
status = "aborted";
status = wxT("aborted");
} else if (exit_code == 0) {
jobs[ndx].status = JOBS_DONE;
status = "completed OK";
status = wxT("completed OK");
} else if (exit_code == 1) {
jobs[ndx].status = JOBS_DONE_WARNINGS;
status = "completed with warnings";
status = wxT("completed with warnings");
} else {
jobs[ndx].status = JOBS_FAILED;
status = "failed";
status = wxT("failed");
}
jobs[ndx].finished_on = time(NULL);