Using nl_langinfo(CODESET) to determine the local codeset to use; libsi uses canonical codeset names

This commit is contained in:
Klaus Schmidinger
2007-06-15 13:25:35 +02:00
parent 1f7c70cd49
commit d1934a7cfd
5 changed files with 70 additions and 60 deletions

View File

@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
* $Id: tools.c 1.125 2007/06/15 12:46:38 kls Exp $
* $Id: tools.c 1.126 2007/06/15 13:11:12 kls Exp $
*/
#include "tools.h"
@@ -732,7 +732,7 @@ void cCharSetConv::SetSystemCharacterTable(const char *CharacterTable)
{
free(systemCharacterTable);
systemCharacterTable = NULL;
if (!strcasestr(CharacterTable, "UTF")) {
if (!strcasestr(CharacterTable, "UTF-8")) {
// Set up a map for the character values 128...255:
char buf[129];
for (int i = 0; i < 128; i++)