Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > c509b22edde78ba0c60ff4e73cdf8ebe > files > 8

lzma-4.43-17mdv2008.0.src.rpm

--- src/lzma/lzmp.cpp.text	2007-06-22 16:36:08.000000000 +0000
+++ src/lzma/lzmp.cpp	2007-06-22 16:37:42.000000000 +0000
@@ -99,7 +99,7 @@ struct lzma_option {
  * to the corresponding LZMA compression modes. Thanks, Larhzu, for coining
  * these. */
 const lzma_option option_mapping[] = {
-	{ 0,  0,  0,    NULL, 0, 0, 0},		// -0 (needed for indexing)
+	{ 1, 18, 112, L"bt4", 3, 0, 0},		// -0
 	{ 0, 16, 64,  L"hc4", 3, 0, 2},		// -1
 	{ 0, 20, 64,  L"hc4", 3, 0, 2},		// -2
 	{ 1, 19, 64,  L"bt4", 3, 0, 2},		// -3
@@ -155,11 +155,12 @@ const struct option long_options[] = {
 	{ "version", 0, 0, 'V' },
 	{ "fast", 0, 0, '1' },
 	{ "best", 0, 0, '9' },
+	{ "text", 0, 0, '0' },
 	{ 0, 0, 0, 0 }
 };
 
 /* getopt option string (for the above options). */
-const char option_string[] = "cdzkftS:qvhLV123456789A:D:F:";
+const char option_string[] = "cdzkftS:qvhLV0123456789A:D:F:";
 
 /* Defaults. */
 PROGRAM_MODE program_mode = PM_COMPRESS;
@@ -194,8 +195,10 @@ void print_help(const char *const argv0)
 "  -h --help         print this message\n"
 "  -L --license      display the license information\n"
 "  -V --version      display version numbers of LZMA SDK and lzma\n"
+"  -0                betted tuned for text compression\n"
 "  -1 .. -2          fast compression\n"
 "  -3 .. -9          good to excellent compression. -7 is the default.\n"
+"     --text         alias for -0\n"
 "     --fast         alias for -1\n"
 "     --best         alias for -9 (usually *not* what you want)\n\n"
 "  Memory usage depends a lot on the chosen compression mode -1 .. -9.\n"
@@ -325,7 +328,7 @@ void parse_options(int argc, char **argv
 				break;
 
 			case '1': case '2': case '3': case '4': case '5':
-			case '6': case '7': case '8': case '9':
+			case '6': case '7': case '8': case '9': case '0':
 				compression_mode = c - '0';
 				break;