Skip to content

Commit 45f9645

Browse files
author
Hartmut Gimpel
committed
fix text encoding in qt4 under Linux (bug #49118)
* octave-gui.cc (gui_application::execute): For Qt4, restore call to QTextCodec::setCodecForCStrings that was removed in changeset 2fd4f1a3f4a8.
1 parent 9381e28 commit 45f9645

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libgui/src/octave-gui.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,10 @@ namespace octave
159159
QTextCodec::setCodecForLocale (QTextCodec::codecForName ("UTF-8"));
160160
#endif
161161

162+
#if defined (HAVE_QT4)
163+
QTextCodec::setCodecForCStrings (QTextCodec::codecForName ("UTF-8"));
164+
#endif
165+
162166
// set windows style for windows
163167
#if defined (Q_OS_WIN32)
164168
qt_app.setStyle(QStyleFactory::create("Windows"));

0 commit comments

Comments
 (0)