mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
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:
parent
1ba1c684cb
commit
e1c45d227b
2 changed files with 10 additions and 8 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue