FS#6944 - honour the default codepage setting when reading cue sheets

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15595 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Robert Kukla 2007-11-12 12:39:56 +00:00
parent 1ba1c684cb
commit e1c45d227b
2 changed files with 10 additions and 8 deletions

View file

@ -194,8 +194,10 @@ bool parse_cuesheet(char *file, struct cuesheet *cue)
break;
}
if (dest)
strncpy(dest, string, MAX_NAME);
if (dest) {
dest = iso_decode(string, dest, -1, MIN(strlen(string), MAX_NAME));
*dest = '\0';
}
}
}
close(fd);