diff libgui/src/history-dockwidget.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 9cd14e53e906
children c3057d80cf91
line wrap: on
line diff
--- a/libgui/src/history-dockwidget.cc	Fri Jan 04 14:14:41 2013 -0800
+++ b/libgui/src/history-dockwidget.cc	Sat Jan 05 08:35:09 2013 +0100
@@ -200,7 +200,7 @@
           std::string entry = command_history::get_entry (i);
 
           _history_model->setData (_history_model->index (i),
-                      QString::fromLocal8Bit (entry.data (), entry.size ()));
+                      QString::fromUtf8 (entry.data (), entry.size ()));
         }
 
       // FIXME -- does this behavior make sense?  Calling