From 2a7346d3714df18e437f862b88f96bd9347dcc5f Mon Sep 17 00:00:00 2001 From: Kalle Olavi Niemitalo Date: Sat, 1 Mar 2008 17:29:58 +0200 Subject: [PATCH] Tone down the protocol.http.compression warning AFAIK, all bugs in it have been fixed. Some bugs may still be lurking but they are more likely to get caught if compression is enabled. I also replaced COMP_NOTE with static text because xgettext does not support macros in the argument of N_. (cherry picked from commit 3a9b5d091d80d224b4bf93e0dd38d1c5b1a0797f) --- src/protocol/http/http.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/protocol/http/http.c b/src/protocol/http/http.c index 6dc8eb475..5d30ca7ca 100644 --- a/src/protocol/http/http.c +++ b/src/protocol/http/http.c @@ -178,20 +178,20 @@ static struct option_info http_options[] = { "security risk because it tells web-masters and the FBI sniffers about\n" "your language preference.")), -#if !(defined(CONFIG_GZIP) || defined(CONFIG_BZIP2)) -#define COMP_NOTE "\nNote that this ELinks version has been compiled without compression\n" \ - "support anyway. This option will have no effect.\n" -#else -#define COMP_NOTE -#endif - INIT_OPT_BOOL("protocol.http", N_("Enable on-the-fly compression (experimental)"), + /* After the compression support has been tested enough, + * we might wrap this option in #if CFG_DEBUG. */ + INIT_OPT_BOOL("protocol.http", N_("Enable on-the-fly compression"), "compression", 0, 1, N_("If enabled, the capability to receive compressed content (gzip and/or\n" "bzip2) is announced to the server, which usually sends the reply\n" "compressed, thus saving some bandwidth at slight CPU expense.\n" - "HOWEVER, please note that the ELinks implementation is unfortunately very\n" - "buggy and you may see incomplete pages, pages with garbage instead of\n" - "content, etc.!" COMP_NOTE)), + "\n" + "If ELinks displays a incomplete page or garbage, try disabling this\n" + "option. If that helps, there may be a bug in the decompression part\n" + "of ELinks. Please report such bugs.\n" + "\n" + "If ELinks has been compiled without compression support, this option\n" + "has no effect. To check the supported features, see Help -> About.")), INIT_OPT_BOOL("protocol.http", N_("Activate HTTP TRACE debugging"), "trace", 0, 0,