From b261a92d4af2a02f3b739020d5dbeb6d066436f0 Mon Sep 17 00:00:00 2001 From: phintuka Date: Tue, 26 Jun 2007 15:14:11 +0000 Subject: =?UTF-8?q?Fix=20compilation=20with=20VDR=20>=3D=201.5.3=20(Patch?= =?UTF-8?q?=20from=20Thomas=20G=C3=BCnther)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/iconv.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/iconv.h b/tools/iconv.h index 0402c70b..f83a58a9 100644 --- a/tools/iconv.h +++ b/tools/iconv.h @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: iconv.h,v 1.3 2007-06-11 19:41:07 phintuka Exp $ + * $Id: iconv.h,v 1.4 2007-06-26 15:14:11 phintuka Exp $ * */ @@ -40,7 +40,11 @@ cIConv::cIConv(const char *SrcCharset, const char * DstCharset) if(!SrcCharset) SrcCharset = "UTF-8"; if(!DstCharset) +#if APIVERSNUM >= 10503 + DstCharset = cCharSetConv::SystemCharacterTable(); +#else DstCharset = I18nCharSets()[Setup.OSDLanguage]; +#endif m_ic = iconv_open(DstCharset, SrcCharset); -- cgit v1.2.3