From c4d2a1e3fc39b16f04c2703889c3be672720578e Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Wed, 30 May 2007 10:01:45 +0000 Subject: opie-reader: fix copying of unicode text blocks, since upstream isn't likely to incorporate this one-liner patch anytime soon. --- packages/opie-reader/files/.mtn2git_empty | 0 packages/opie-reader/files/opie-reader-unicode-copy.patch | 11 +++++++++++ packages/opie-reader/opie-reader_cvs.bb | 4 +++- 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 packages/opie-reader/files/.mtn2git_empty create mode 100644 packages/opie-reader/files/opie-reader-unicode-copy.patch (limited to 'packages') diff --git a/packages/opie-reader/files/.mtn2git_empty b/packages/opie-reader/files/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/opie-reader/files/opie-reader-unicode-copy.patch b/packages/opie-reader/files/opie-reader-unicode-copy.patch new file mode 100644 index 0000000000..d7d1ae24bd --- /dev/null +++ b/packages/opie-reader/files/opie-reader-unicode-copy.patch @@ -0,0 +1,11 @@ +--- opie-reader/QTReaderApp.cpp.orig 2005-05-18 00:48:25.000000000 +0200 ++++ opie-reader/QTReaderApp.cpp 2006-04-08 15:55:43.000000000 +0200 +@@ -2558,7 +2558,7 @@ + reader->jumpto(m_savedpos); + while (reader->explocate() < endpos && (ch = reader->getch()) != UEOF) + { +- text += ch; ++ text += QChar(ch); + } + cb->setText(text); + reader->locate(currentpos); diff --git a/packages/opie-reader/opie-reader_cvs.bb b/packages/opie-reader/opie-reader_cvs.bb index 2f844d8dfd..82b3547ae1 100644 --- a/packages/opie-reader/opie-reader_cvs.bb +++ b/packages/opie-reader/opie-reader_cvs.bb @@ -1,8 +1,10 @@ require ${PN}.inc PV = "${OPIE_CVS_PV}" +PR = r1 SRC_URI = "${HANDHELDS_CVS};module=opie/noncore/apps/opie-reader \ ${HANDHELDS_CVS};module=opie/pics \ - ${HANDHELDS_CVS};module=opie/apps" + ${HANDHELDS_CVS};module=opie/apps \ + file://opie-reader-unicode-copy.patch;patch=1" -- cgit v1.2.3