New -as mkisofs option -untranslated_name_len

This commit is contained in:
2010-12-22 15:15:47 +00:00
parent 07b8e1a2e5
commit 918c7abcbd
5 changed files with 51 additions and 34 deletions

View File

@ -563,7 +563,7 @@ int Xorriso_genisofs_count_args(struct XorrisO *xorriso, int argc, char **argv,
"-checksum_algorithm_iso", "-checksum_algorithm_template",
"--stdio_sync", "--quoted_path_list", "--efi-boot", "--embedded-boot",
"-isohybrid-mbr", "-e", "-partition_offset", "-partition_hd_cyl",
"-partition_sec_hd",
"-partition_sec_hd", "-untranslated_name_len",
""
};
static char arg2_options[][41]= {
@ -686,6 +686,7 @@ int Xorriso_genisofs_help(struct XorrisO *xorriso, int flag)
" -J, -joliet Generate Joliet directory information",
" -joliet-long Allow Joliet file names to be 103 Unicode characters",
" -U, -untranslated-filenames Allow Untranslated filenames (for HPUX & AIX - violates ISO9660).",
" -untranslated_name_len LEN Allow up to LEN (1..96) name characters (heavily violates ISO9660).",
" -allow-lowercase Allow lower case characters in addition to the current character set (violates ISO9660)",
" -d, -omit-period Omit trailing periods from filenames (violates ISO9660)",
" -l, -full-iso9660-filenames Allow full 31 character filenames for ISO9660 names",
@ -1309,6 +1310,14 @@ not_enough_args:;
strcmp(argv[i], "-untranslated-filenames") == 0) {
Xorriso_relax_compliance(xorriso,
"no_force_dots:long_paths:omit_version:full_ascii:lowercase", 0);
} else if(strcmp(argv[i], "-untranslated_name_len") == 0) {
if(i+1>=argc)
goto not_enough_args;
i++;
sprintf(sfe, "untranslated_name_len=%s", argv[i]);
ret= Xorriso_relax_compliance(xorriso, sfe, 0);
if(ret <= 0)
goto problem_handler_2;
} else if(strcmp(argv[i], "-N") == 0 ||
strcmp(argv[i], "-omit-version-number") == 0) {
Xorriso_relax_compliance(xorriso, "omit_version", 0);