changeset 19720:3db04b75c7c0

do not set text encoding for strings to utf-8 on windows (bug #44103) * octave-gui.cc (octave_start_gui): only use setCodecForCStrings when not building for windows
author Torsten <ttl@justmail.de>
date Mon, 09 Feb 2015 22:09:36 +0100
parents 7335cc071ab0
children 8064b5cdbc11
files libgui/src/octave-gui.cc
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libgui/src/octave-gui.cc	Mon Feb 09 16:06:02 2015 -0500
+++ b/libgui/src/octave-gui.cc	Mon Feb 09 22:09:36 2015 +0100
@@ -113,7 +113,9 @@
       QTranslator gui_tr, qt_tr, qsci_tr;
 
       // Set the codec for all strings (before wizard)
+#if not defined (Q_OS_WIN32)
       QTextCodec::setCodecForCStrings (QTextCodec::codecForName ("UTF-8"));
+#endif
 
       // show wizard if this is the first run
       if (resource_manager::is_first_run ())