updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / vdr-burn / 95_charset-vdr-1.5.3.dpatch
blob9ef3ed0bfc943cf815ba34b3d26e071113bcbaf5
1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## 95_charset-vdr-1.5.3.dpatch by Matthias Schwarzott <zzam@gentoo.org>
3 ##
4 ## All lines beginning with `## DP:' are a description of the patch.
5 ## DP: Fixes utf8 issues with vdr >= 1.5.3
7 @DPATCH@
8 diff -urNad vdr-plugin-burn-0.1.0~pre21~/burn.c vdr-plugin-burn-0.1.0~pre21/burn.c
9 --- vdr-plugin-burn-0.1.0~pre21~/burn.c 2006-09-16 20:33:36.000000000 +0200
10 +++ vdr-plugin-burn-0.1.0~pre21/burn.c 2008-05-11 14:51:07.000000000 +0200
11 @@ -45,8 +45,13 @@
13 string plugin::get_character_encoding()
15 -#ifdef UTF8PATCH
16 - return "utf8";
17 +#if VDRVERSNUM >= 10503
18 + if (cCharSetConv::SystemCharacterTable())
19 + return cCharSetConv::SystemCharacterTable();
20 + else
21 + return "utf-8";
22 +#elif defined(UTF8PATCH)
23 + return "utf-8";
24 #else
25 return tr("iso8859-15");
26 #endif