To whoever had problems with KMail and messages in ISO-8859-8 encoding
being displayed incorrectly, this patch (to Qt; this is a bug in Qt's
QTextCodec) should solve the problem.
Gotta love the trolls. (Especially in light of our recent discussion
about quality of commercial support...)
----- Forwarded message from [EMAIL PROTECTED] -----
From: [EMAIL PROTECTED]
To: Ilya Konstantinov <[EMAIL PROTECTED]>
Subject: Re: [Issue N13560] QTextCodec for ISO-8859-8 mangles text
Cc: [EMAIL PROTECTED]
X-Trolltech-Task-ID: 13560
Hi Ilya,
thanks for the report. The patch below should fix your problem (will be
in all upcoming Qt releases).
Cheers,
Lars
--- /tmp/tmp.20688.0 Mon Jan 6 12:40:30 2003
+++ /home/lars/dev/qt-3.0/src/kernel/qcomplextext.cpp Mon Jan 6
12:40:17 2003
@@ -1520,11 +1520,12 @@
const QChar *ch = str.unicode();
while( lineStart < len ) {
lineEnd = lineStart;
- while( lineEnd < len && *ch != '\n' ) {
+ while( lineEnd <= len ) {
+ if ( lineEnd < len && *ch == '\n' )
+ break;
ch++;
lineEnd++;
}
- lineEnd++;
QPtrList<QTextRun> *runs = bidiReorderLine( &control, str, lineStart,
lineEnd - lineStart, basicDir );
// reorder the content of the line, and output to visual
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]