Lines 331-337
static ZCONST char Far ZipInfoUsageLine3
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
Send bug reports using //www.info-zip.or
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
modifiers:\n\
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
modifiers:\n\
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 803-808
int unzip(__G__ argc, argv)
Link Here
|
803 |
#endif /* UNICODE_SUPPORT */ |
808 |
#endif /* UNICODE_SUPPORT */ |
804 |
|
809 |
|
805 |
|
810 |
|
|
|
811 |
#ifdef UNIX |
812 |
init_conversion_charsets(); |
813 |
#endif |
814 |
|
806 |
#if (defined(__IBMC__) && defined(__DEBUG_ALLOC__)) |
815 |
#if (defined(__IBMC__) && defined(__DEBUG_ALLOC__)) |
807 |
extern void DebugMalloc(void); |
816 |
extern void DebugMalloc(void); |
808 |
|
817 |
|
Lines 1336-1341
int uz_opts(__G__ pargc, pargv)
Link Here
|
1336 |
argc = *pargc; |
1345 |
argc = *pargc; |
1337 |
argv = *pargv; |
1346 |
argv = *pargv; |
1338 |
|
1347 |
|
|
|
1348 |
#ifdef UNIX |
1349 |
extern char OEM_CP[MAX_CP_NAME]; |
1350 |
extern char ISO_CP[MAX_CP_NAME]; |
1351 |
#endif |
1352 |
|
1339 |
while (++argv, (--argc > 0 && *argv != NULL && **argv == '-')) { |
1353 |
while (++argv, (--argc > 0 && *argv != NULL && **argv == '-')) { |
1340 |
s = *argv + 1; |
1354 |
s = *argv + 1; |
1341 |
while ((c = *s++) != 0) { /* "!= 0": prevent Turbo C warning */ |
1355 |
while ((c = *s++) != 0) { /* "!= 0": prevent Turbo C warning */ |
Lines 1517-1522
int uz_opts(__G__ pargc, pargv)
Link Here
|
1517 |
} |
1531 |
} |
1518 |
break; |
1532 |
break; |
1519 |
#endif /* MACOS */ |
1533 |
#endif /* MACOS */ |
|
|
1534 |
#ifdef UNIX |
1535 |
case ('I'): |
1536 |
if (negative) { |
1537 |
Info(slide, 0x401, ((char *)slide, |
1538 |
"error: encodings can't be negated")); |
1539 |
return(PK_PARAM); |
1540 |
} else { |
1541 |
if(*s) { /* Handle the -Icharset case */ |
1542 |
/* Assume that charsets can't start with a dash to spot arguments misuse */ |
1543 |
if(*s == '-') { |
1544 |
Info(slide, 0x401, ((char *)slide, |
1545 |
"error: a valid character encoding should follow the -I argument")); |
1546 |
return(PK_PARAM); |
1547 |
} |
1548 |
strncpy(ISO_CP, s, sizeof(ISO_CP)); |
1549 |
} else { /* -I charset */ |
1550 |
++argv; |
1551 |
if(!(--argc > 0 && *argv != NULL && **argv != '-')) { |
1552 |
Info(slide, 0x401, ((char *)slide, |
1553 |
"error: a valid character encoding should follow the -I argument")); |
1554 |
return(PK_PARAM); |
1555 |
} |
1556 |
s = *argv; |
1557 |
strncpy(ISO_CP, s, sizeof(ISO_CP)); |
1558 |
} |
1559 |
while(*(++s)); /* No params straight after charset name */ |
1560 |
} |
1561 |
break; |
1562 |
#endif /* ?UNIX */ |
1520 |
case ('j'): /* junk pathnames/directory structure */ |
1563 |
case ('j'): /* junk pathnames/directory structure */ |
1521 |
if (negative) |
1564 |
if (negative) |
1522 |
uO.jflag = FALSE, negative = 0; |
1565 |
uO.jflag = FALSE, negative = 0; |
Lines 1592-1597
int uz_opts(__G__ pargc, pargv)
Link Here
|
1592 |
} else |
1635 |
} else |
1593 |
++uO.overwrite_all; |
1636 |
++uO.overwrite_all; |
1594 |
break; |
1637 |
break; |
|
|
1638 |
#ifdef UNIX |
1639 |
case ('O'): |
1640 |
if (negative) { |
1641 |
Info(slide, 0x401, ((char *)slide, |
1642 |
"error: encodings can't be negated")); |
1643 |
return(PK_PARAM); |
1644 |
} else { |
1645 |
if(*s) { /* Handle the -Ocharset case */ |
1646 |
/* Assume that charsets can't start with a dash to spot arguments misuse */ |
1647 |
if(*s == '-') { |
1648 |
Info(slide, 0x401, ((char *)slide, |
1649 |
"error: a valid character encoding should follow the -I argument")); |
1650 |
return(PK_PARAM); |
1651 |
} |
1652 |
strncpy(OEM_CP, s, sizeof(OEM_CP)); |
1653 |
} else { /* -O charset */ |
1654 |
++argv; |
1655 |
if(!(--argc > 0 && *argv != NULL && **argv != '-')) { |
1656 |
Info(slide, 0x401, ((char *)slide, |
1657 |
"error: a valid character encoding should follow the -O argument")); |
1658 |
return(PK_PARAM); |
1659 |
} |
1660 |
s = *argv; |
1661 |
strncpy(OEM_CP, s, sizeof(OEM_CP)); |
1662 |
} |
1663 |
while(*(++s)); /* No params straight after charset name */ |
1664 |
} |
1665 |
break; |
1666 |
#endif /* ?UNIX */ |
1595 |
case ('p'): /* pipes: extract to stdout, no messages */ |
1667 |
case ('p'): /* pipes: extract to stdout, no messages */ |
1596 |
if (negative) { |
1668 |
if (negative) { |
1597 |
uO.cflag = FALSE; |
1669 |
uO.cflag = FALSE; |