summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xine-engine/osd.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/xine-engine/osd.c b/src/xine-engine/osd.c
index cb638128b..70213606a 100644
--- a/src/xine-engine/osd.c
+++ b/src/xine-engine/osd.c
@@ -74,6 +74,13 @@
*/
#define ALIAS_CHARACTER_FONT '_'
+/* we want UCS-2 encoding in the machine endian */
+#ifdef WORDS_BIGENDIAN
+# define UCS2_ENCODING "UCS-2BE"
+#else
+# define UCS2_ENCODING "UCS-2LE"
+#endif
+
#ifdef MAX
#undef MAX
#endif
@@ -891,9 +898,9 @@ static int osd_set_encoding (osd_object_t *osd, const char *encoding) {
}
/* prepare conversion to UCS-2 */
- if ((osd->cd = iconv_open("UCS-2", encoding)) == (iconv_t)-1) {
+ if ((osd->cd = iconv_open(UCS2_ENCODING, encoding)) == (iconv_t)-1) {
xprintf(osd->renderer->stream->xine, XINE_VERBOSITY_LOG,
- _("osd: unsupported conversion %s -> UCS-2, no conversion performed\n"), encoding);
+ _("osd: unsupported conversion %s -> %s, no conversion performed\n"), encoding, UCS2_ENCODING);
return 0;
}