[mythtv-commits] Ticket #1808: swedish characters gets scrambled on LCD
MythTV
mythtv at cvs.mythtv.org
Sat May 13 15:27:44 EDT 2006
#1808: swedish characters gets scrambled on LCD
------------------+---------------------------------------------------------
Owner: ijr | Type: defect
Status: new | Priority: minor
Milestone: | Component: mythtv
Version: head | Severity: medium
------------------+---------------------------------------------------------
Reporter:
anonymous
henrik.lilljebjorn AT home.se
------------------+---------------------------------------------------------
MythTV from svn (9926) doesn't show the swedish characters åäö correctly
on an lcd-display, I don't know if this is specific for my installation or
not. LCDProc expects iso8859-1 coding, mythlcdserver was sending something
else. The character "ä" gets displayed as "Ã ¤". This is the result of
the "ä" utf8 code being wrongly converted from iso8859-1 to utf8. The
following patch corrects the issue on my machine, but I don't know if is
OK on other machines:
{{{
#!rst
--- mythtv/libs/libmyth/lcddevice.cpp.orig 2006-05-13
12:02:15.000000000 +0200
+++ mythtv/libs/libmyth/lcddevice.cpp 2006-05-11 20:49:41.000000000
+0200
@@ -217,7 +217,8 @@
}
QTextStream os(socket->socketDevice());
-
+
+ os.setEncoding(QTextStream::Latin1);
last_command = someText;
if (connected)
--- mythtv/programs/mythlcdserver/lcdprocclient.cpp.orig 2006-05-13
17:17:12.000000000 +0200
+++ mythtv/programs/mythlcdserver/lcdprocclient.cpp 2006-05-13
17:18:56.000000000 +0200
@@ -184,6 +184,7 @@
QTextStream os(socket);
+ os.setEncoding(QTextStream::Latin1);
last_command = someText;
if (connected)
}}}
OS: Gentoo Linux, Locale: en_US.UTF-8
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/1808>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list