Lines 331-337
Link Here
|
331 |
-h print header line -t print totals for listed files or for all\n\ |
331 |
-h print header line -t print totals for listed files or for all\n\ |
332 |
-z print zipfile comment -T print file times in sortable decimal format\ |
332 |
-z print zipfile comment -T print file times in sortable decimal format\ |
333 |
\n -C be case-insensitive %s\ |
333 |
\n -C be case-insensitive %s\ |
334 |
-x exclude filenames that follow from listing\n"; |
334 |
-x exclude filenames that follow from listing\n\ |
|
|
335 |
-O CHARSET specify a character encoding for DOS, Windows and OS/2 archives\n\ |
336 |
-I CHARSET specify a character encoding for UNIX and other archives\n"; |
335 |
#ifdef MORE |
337 |
#ifdef MORE |
336 |
static ZCONST char Far ZipInfoUsageLine4[] = |
338 |
static ZCONST char Far ZipInfoUsageLine4[] = |
337 |
" -M page output through built-in \"more\"\n"; |
339 |
" -M page output through built-in \"more\"\n"; |
Lines 570-577
Link Here
|
570 |
#else /* !VMS */ |
572 |
#else /* !VMS */ |
571 |
# ifdef COPYRIGHT_CLEAN |
573 |
# ifdef COPYRIGHT_CLEAN |
572 |
static ZCONST char Far UnzipUsageLine1[] = "\ |
574 |
static ZCONST char Far UnzipUsageLine1[] = "\ |
573 |
UnZip %d.%d%d%s of %s, by Info-ZIP. Maintained by C. Spieler. Send\n\ |
575 |
UnZip %d.%d%d%s of %s, by ALT Linux Team. Original by Info-ZIP.\ |
574 |
bug reports using http://www.info-zip.org/zip-bug.html; see README for details.\ |
|
|
575 |
\n\n"; |
576 |
\n\n"; |
576 |
# else |
577 |
# else |
577 |
static ZCONST char Far UnzipUsageLine1[] = "\ |
578 |
static ZCONST char Far UnzipUsageLine1[] = "\ |
Lines 673-679
Link Here
|
673 |
-j junk paths (do not make directories) -aa treat ALL files as text\n\ |
674 |
-j junk paths (do not make directories) -aa treat ALL files as text\n\ |
674 |
-U use escapes for all non-ASCII Unicode -UU ignore any Unicode fields\n\ |
675 |
-U use escapes for all non-ASCII Unicode -UU ignore any Unicode fields\n\ |
675 |
-C match filenames case-insensitively -L make (some) names \ |
676 |
-C match filenames case-insensitively -L make (some) names \ |
676 |
lowercase\n %-42s -V retain VMS version numbers\n%s"; |
677 |
lowercase\n %-42s -V retain VMS version numbers\n%s\ |
|
|
678 |
-O CHARSET specify a character encoding for DOS, Windows and OS/2 archives\n\ |
679 |
-I CHARSET specify a character encoding for UNIX and other archives\n"; |
677 |
#endif /* ?VMS */ |
680 |
#endif /* ?VMS */ |
678 |
#else /* !UNICODE_SUPPORT */ |
681 |
#else /* !UNICODE_SUPPORT */ |
679 |
#ifdef VMS |
682 |
#ifdef VMS |
Lines 692-698
Link Here
|
692 |
-o overwrite files WITHOUT prompting -a auto-convert any text files\n\ |
695 |
-o overwrite files WITHOUT prompting -a auto-convert any text files\n\ |
693 |
-j junk paths (do not make directories) -aa treat ALL files as text\n\ |
696 |
-j junk paths (do not make directories) -aa treat ALL files as text\n\ |
694 |
-C match filenames case-insensitively -L make (some) names \ |
697 |
-C match filenames case-insensitively -L make (some) names \ |
695 |
lowercase\n %-42s -V retain VMS version numbers\n%s"; |
698 |
lowercase\n %-42s -V retain VMS version numbers\n%s\ |
|
|
699 |
-O CHARSET specify a character encoding for DOS, Windows and OS/2 archives\n\ |
700 |
-I CHARSET specify a character encoding for UNIX and other archives\n"; |
696 |
#endif /* ?VMS */ |
701 |
#endif /* ?VMS */ |
697 |
#endif /* ?UNICODE_SUPPORT */ |
702 |
#endif /* ?UNICODE_SUPPORT */ |
698 |
|
703 |
|
Lines 668-673
int unzip(__G__ argc, argv)
Link Here
|
668 |
|
690 |
|
669 |
SETLOCALE(LC_CTYPE,""); |
691 |
SETLOCALE(LC_CTYPE,""); |
670 |
|
692 |
|
|
|
693 |
#ifdef UNIX |
694 |
init_conversion_charsets(); |
695 |
#endif |
696 |
|
671 |
#if (defined(__IBMC__) && defined(__DEBUG_ALLOC__)) |
697 |
#if (defined(__IBMC__) && defined(__DEBUG_ALLOC__)) |
672 |
extern void DebugMalloc(void); |
698 |
extern void DebugMalloc(void); |
673 |
|
699 |
|
Lines 1089-1094
int uz_opts(__G__ pargc, pargv)
Link Here
|
1089 |
argc = *pargc; |
1115 |
argc = *pargc; |
1090 |
argv = *pargv; |
1116 |
argv = *pargv; |
1091 |
|
1117 |
|
|
|
1118 |
#ifdef UNIX |
1119 |
extern char OEM_CP[MAX_CP_NAME]; |
1120 |
extern char ISO_CP[MAX_CP_NAME]; |
1121 |
#endif |
1122 |
|
1092 |
while (++argv, (--argc > 0 && *argv != NULL && **argv == '-')) { |
1123 |
while (++argv, (--argc > 0 && *argv != NULL && **argv == '-')) { |
1093 |
s = *argv + 1; |
1124 |
s = *argv + 1; |
1094 |
while ((c = *s++) != 0) { /* "!= 0": prevent Turbo C warning */ |
1125 |
while ((c = *s++) != 0) { /* "!= 0": prevent Turbo C warning */ |
Lines 1252-1257
int uz_opts(__G__ pargc, pargv)
Link Here
|
1252 |
} |
1283 |
} |
1253 |
break; |
1284 |
break; |
1254 |
#endif /* MACOS */ |
1285 |
#endif /* MACOS */ |
|
|
1286 |
#ifdef UNIX |
1287 |
case ('I'): |
1288 |
if (negative) { |
1289 |
Info(slide, 0x401, ((char *)slide, |
1290 |
"error: encodings can't be negated")); |
1291 |
return(PK_PARAM); |
1292 |
} else { |
1293 |
if(*s) { /* Handle the -Icharset case */ |
1294 |
/* Assume that charsets can't start with a dash to spot arguments misuse */ |
1295 |
if(*s == '-') { |
1296 |
Info(slide, 0x401, ((char *)slide, |
1297 |
"error: a valid character encoding should follow the -I argument")); |
1298 |
return(PK_PARAM); |
1299 |
} |
1300 |
strncpy(ISO_CP, s, sizeof(ISO_CP)); |
1301 |
} else { /* -I charset */ |
1302 |
++argv; |
1303 |
if(!(--argc > 0 && *argv != NULL && **argv != '-')) { |
1304 |
Info(slide, 0x401, ((char *)slide, |
1305 |
"error: a valid character encoding should follow the -I argument")); |
1306 |
return(PK_PARAM); |
1307 |
} |
1308 |
s = *argv; |
1309 |
strncpy(ISO_CP, s, sizeof(ISO_CP)); |
1310 |
} |
1311 |
while(*(++s)); /* No params straight after charset name */ |
1312 |
} |
1313 |
break; |
1314 |
#endif /* ?UNIX */ |
1255 |
case ('j'): /* junk pathnames/directory structure */ |
1315 |
case ('j'): /* junk pathnames/directory structure */ |
1256 |
if (negative) |
1316 |
if (negative) |
1257 |
uO.jflag = FALSE, negative = 0; |
1317 |
uO.jflag = FALSE, negative = 0; |
Lines 1327-1332
int uz_opts(__G__ pargc, pargv)
Link Here
|
1327 |
} else |
1387 |
} else |
1328 |
++uO.overwrite_all; |
1388 |
++uO.overwrite_all; |
1329 |
break; |
1389 |
break; |
|
|
1390 |
#ifdef UNIX |
1391 |
case ('O'): |
1392 |
if (negative) { |
1393 |
Info(slide, 0x401, ((char *)slide, |
1394 |
"error: encodings can't be negated")); |
1395 |
return(PK_PARAM); |
1396 |
} else { |
1397 |
if(*s) { /* Handle the -Ocharset case */ |
1398 |
/* Assume that charsets can't start with a dash to spot arguments misuse */ |
1399 |
if(*s == '-') { |
1400 |
Info(slide, 0x401, ((char *)slide, |
1401 |
"error: a valid character encoding should follow the -I argument")); |
1402 |
return(PK_PARAM); |
1403 |
} |
1404 |
strncpy(OEM_CP, s, sizeof(OEM_CP)); |
1405 |
} else { /* -O charset */ |
1406 |
++argv; |
1407 |
if(!(--argc > 0 && *argv != NULL && **argv != '-')) { |
1408 |
Info(slide, 0x401, ((char *)slide, |
1409 |
"error: a valid character encoding should follow the -O argument")); |
1410 |
return(PK_PARAM); |
1411 |
} |
1412 |
s = *argv; |
1413 |
strncpy(OEM_CP, s, sizeof(OEM_CP)); |
1414 |
} |
1415 |
while(*(++s)); /* No params straight after charset name */ |
1416 |
} |
1417 |
break; |
1418 |
#endif /* ?UNIX */ |
1330 |
case ('p'): /* pipes: extract to stdout, no messages */ |
1419 |
case ('p'): /* pipes: extract to stdout, no messages */ |
1331 |
if (negative) { |
1420 |
if (negative) { |
1332 |
uO.cflag = FALSE; |
1421 |
uO.cflag = FALSE; |