vdr-burn-0.1.0_pre21 using correct charset with >=vdr-1.5.3

Message ID 200706301921.51743.zzam@gentoo.org
State New
Headers

Commit Message

Matthias Schwarzott June 30, 2007, 5:21 p.m. UTC
  Hi there!

The attached patch lets vdr-burn-0.1.0_pre21 use the correct charset that vdr 
itself uses. This stops vdr-burn to double utf8 encode texts.

Matthias
  

Patch

Index: burn-0.1.0-pre21/burn.c
===================================================================
--- burn-0.1.0-pre21.orig/burn.c
+++ burn-0.1.0-pre21/burn.c
@@ -45,8 +45,13 @@  namespace vdr_burn
 
 	string plugin::get_character_encoding()
 	{
-#ifdef UTF8PATCH
-		return "utf8";
+#if VDRVERSNUM >= 10503
+		if (cCharSetConv::SystemCharacterTable())
+			return cCharSetConv::SystemCharacterTable();
+		else
+			return "utf-8";
+#elif defined(UTF8PATCH)
+		return "utf-8";
 #else
 		return tr("iso8859-15");
 #endif