Encoding HFS+ names in UTF-16 rather than UCS-2.

This commit is contained in:
2013-11-26 12:47:43 +01:00
parent 654ff82345
commit bc5e2227c8
3 changed files with 134 additions and 1 deletions

View File

@@ -128,7 +128,7 @@ int set_hfsplus_name(Ecma119Image *t, char *name, HFSPlusNode *node)
return ISO_SUCCESS;
}
ret = str2ucs(t->input_charset, name, &ucs_name);
ret = str2utf16be(t->input_charset, name, &ucs_name);
if (ret < 0) {
iso_msg_debug(t->image->id, "Can't convert %s", name);
return ret;