ich hab mich gewundert, wieso graphlcd mit dem patch stürzt bei mir immer ab.
Antowort ist einfach: cCharSetConv::SystemCharacterTable() liefert etwas nur wenn man 8 bit locale benutzt. Wenn die UTF-8 wird einfach NULL zurückgeliefert.
Zitat
systemCharacterTable is only set if it is a single byte character set, which UTF-8 is not.
so...ich hab patch geändert...der soll so aussehen
Diff
diff -Naur graphlcd-0.1.5.orig/layout.c graphlcd-0.1.5/layout.c
--- graphlcd-0.1.5.orig/layout.c 2007-06-26 21:43:52.000000000 +0200
+++ graphlcd-0.1.5/layout.c 2007-06-26 21:46:05.000000000 +0200
@@ -65,7 +65,11 @@
file += "/fonts/";
file += url.substr(4, pos - 4);
}
+#if APIVERSNUM >= 10503
+ return font.LoadFT2(file, cCharSetConv::SystemCharacterTable()? cCharSetConv::SystemCharacterTable() :"UTF-8", size);
+#else
return font.LoadFT2(file, I18nCharSets()[Setup.OSDLanguage], size);
+#endif
}
else
{
Alles anzeigen