From 12b093a681c4e011062538e4f2c582630997855f Mon Sep 17 00:00:00 2001 From: Bernhard Guillon Date: Sun, 8 Feb 2009 16:42:47 +0100 Subject: xqt2: fix segfault bump PR Change hardcoded QTextCodec to use locale codec --- packages/xqt2/files/fix_seqfault_qtscreen.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 packages/xqt2/files/fix_seqfault_qtscreen.patch (limited to 'packages/xqt2/files') diff --git a/packages/xqt2/files/fix_seqfault_qtscreen.patch b/packages/xqt2/files/fix_seqfault_qtscreen.patch new file mode 100644 index 0000000000..43b97f4bdb --- /dev/null +++ b/packages/xqt2/files/fix_seqfault_qtscreen.patch @@ -0,0 +1,13 @@ +--- xc/../xqt2.vanilla/xfree86/xqt-driver/qtscreen.cc 2009-02-08 15:47:33.000000000 +0100 ++++ xc/../xqt2/xfree86/xqt-driver/qtscreen.cc 2009-02-08 15:52:09.000000000 +0100 +@@ -406,7 +406,9 @@ + // + void qtScreen::keyPressEvent(QKeyEvent *ev) + { +- static QTextCodec *codec = QTextCodec::codecForName("eucJP"); ++ //static QTextCodec *codec = QTextCodec::codecForName("eucJP"); ++ //Better to choose the locale - even better provide a command line switch! ++ static QTextCodec *codec = QTextCodec::codecForLocale(); + + #ifdef QWS + QCString euc; -- cgit v1.2.3