Mercurial > hg > octave-nkf
comparison libgui/src/octave-qt-event-listener.cc @ 15900:80e99730e5d4
gui: set locale to C before starting the interpreter
* octave-main-thread.cc(run): set locale to C instead of en_US.UTF-8.
* octave-qt-event-listener.cc(current_directory_has_changed): use the correct
charset for emitting the signal with a new directory.
* main-window.cc(change_current_working_directory,set_current_working_directory)
use the correct charset when sending a new directory from the gui to octave.
* history-dockwidget.cc(update_history_callback): use the correct chareset for
displaying the history.
* symbol-information.h: correct charset for displaying value in workspace view.
author | Torsten <ttl@justmail.de> |
---|---|
date | Sat, 05 Jan 2013 08:35:09 +0100 |
parents | d90b426b9988 |
children | d4b6ad43bc87 |
comparison
equal
deleted
inserted
replaced
15899:f59797321a1b | 15900:80e99730e5d4 |
---|---|
34 | 34 |
35 void | 35 void |
36 octave_qt_event_listener::current_directory_has_changed (const std::string& directory) | 36 octave_qt_event_listener::current_directory_has_changed (const std::string& directory) |
37 { | 37 { |
38 emit current_directory_has_changed_signal | 38 emit current_directory_has_changed_signal |
39 (QString::fromLocal8Bit (directory.data (), directory.size ())); | 39 (QString::fromUtf8 (directory.data (), directory.size ())); |
40 } | 40 } |
41 | 41 |
42 void | 42 void |
43 octave_qt_event_listener::about_to_exit () | 43 octave_qt_event_listener::about_to_exit () |
44 { | 44 { |