WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] Qt4.3/X11 renders blanks as Euro symbols under XEN

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Qt4.3/X11 renders blanks as Euro symbols under XEN
From: Klaus Schmidinger <Klaus.Schmidinger@xxxxxxxxxx>
Date: Wed, 21 Feb 2007 10:33:01 +0100
Delivery-date: Wed, 21 Feb 2007 01:32:35 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Organization: CadSoft Computer GmbH
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.9 (X11/20060911)
If I run the attached program on a paravirtualized SUSE 10.2 guest
under XEN 3.0.3_11774, the blanks between the <nobr>...</nobr>
tags are rendered as Euro symbols, as can be seen in the upper
half of ftp://ftp.cadsoft.de/pub/etc/nobr-tag-formatting.png.
The lower half of this screenshot shows the result on the SUSE 10.2
XEN host machine, where everything is fine.

I have already contacted Trolltech about this, but they claim that
this doesn't happen on Vmware and Parallels, so it must be a XEN problem.

I'm using the current snapshot of Qt4.3/X11 from
rsync://rsync.trolltech.com/qt-x11-bleeding.

Does anybody here have an idea what might be causing this?

Best regards
Klaus Schmidinger
-- 
_______________________________________________________________

Klaus Schmidinger                       Phone: +49-8635-6989-10
CadSoft Computer GmbH                   Fax:   +49-8635-6989-40
Hofmark 2                               Email:   kls@xxxxxxxxxx
D-84568 Pleiskirchen, Germany           URL:     www.cadsoft.de
_______________________________________________________________
#include <qapplication.h>
#include <qdialog.h>
#include <qtextedit.h>
#include <qtextbrowser.h>
#include <qsplitter.h>
#include <qlayout.h>

class cRichTextEditor : public QDialog {
  Q_OBJECT
private:
  QTextBrowser *viewText;
  QTextEdit *editText;
private slots:
  void SlotTextChanged(void);
public:
  cRichTextEditor(const QString &Description);
  };

cRichTextEditor::cRichTextEditor(const QString &Description)
{
  QVBoxLayout *vbl = new QVBoxLayout(this);
  QSplitter *splitter = new QSplitter(Qt::Vertical, this);
  vbl->addWidget(splitter);
  splitter->setOpaqueResize(true);
  viewText = new QTextBrowser(splitter);
  editText = new QTextEdit(splitter);
  editText->setWordWrapMode(QTextOption::WordWrap);
  viewText->setWordWrapMode(QTextOption::WordWrap);
  viewText->setHtml(Description);
  editText->setPlainText(Description);
  connect(editText, SIGNAL(textChanged()), SLOT(SlotTextChanged()));
  resize(400, 200);
}

void cRichTextEditor::SlotTextChanged(void)
{
  viewText->setUpdatesEnabled(false);
  viewText->setHtml(editText->toPlainText());
  viewText->setUpdatesEnabled(true);
}

int main(int argc, char **argv)
{
  QApplication a(argc, argv);
  QDialog *d = new cRichTextEditor(
    "Some normal text with blanks.\n"
    "<p>\n"
    "<nobr>Text with &lt;nobr&gt; and blanks that are rendered as Euro 
sign.\n</nobr>"
    );
  d->show();
  return a.exec();
}

#include "moc_nobr-tag-formatting.c"
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] Qt4.3/X11 renders blanks as Euro symbols under XEN, Klaus Schmidinger <=