Minimize charset conversion errors, ignoring when we can't do better.
If a file name is encoded in a different encoding than default input, current implementation make image generation to be cancelled. As this can happen quite frequent, due to files from discs or Windows partitions incorrectly mounted, the best we can do is just ignore this, replacing the wrong character with a '_'.
This commit is contained in:
@ -34,6 +34,7 @@ int get_iso_name(Ecma119Image *img, IsoNode *iso, char **name)
|
||||
// TODO add support for other input charset
|
||||
ret = str2ascii("UTF-8", iso->name, &ascii_name);
|
||||
if (ret < 0) {
|
||||
iso_msg_debug(img->image, "Can't convert %s", iso->name);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user