~ubuntu-branches/ubuntu/utopic/w3m/utopic

« back to all changes in this revision

Viewing changes to .pc/020_button.patch/file.c

  • Committer: Package Import Robot
  • Author(s): Tatsuya Kinoshita
  • Date: 2012-05-22 23:16:58 UTC
  • mfrom: (3.1.19 sid)
  • Revision ID: package-import@ubuntu.com-20120522231658-omsgeh48nruo0vvm
Tags: 0.5.3-8
* debian/patches/010_upstream.patch: Sync with upstream on 2012-05-22
  - Support <meta charset>
* debian/patches/050_entity-h-clean.patch: Removed (meged upstream)
* debian/patches/110_form-input-text.patch:
  - Assume "text" if an input type is unknown (closes: #615843)
* debian/patches/100_use-cppflags.patch: Use $(CPPFLAGS) with $(CPP)
* debian/rules:
  - Fix CPPFLAGS hardening flags missing (closes: #665491)
  - Accept linux-gnueabi for w3m-img (closes: #673123)
* debian/mime: Use charset for mailcap (closes: #282784)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: file.c,v 1.265 2010/12/15 10:50:24 htrb Exp $ */
 
1
/* $Id: file.c,v 1.266 2012/05/22 09:45:56 inu Exp $ */
2
2
#include "fm.h"
3
3
#include <sys/types.h>
4
4
#include "myctype.h"
5020
5020
        HTMLlineproc1(tmp->ptr, h_env);
5021
5021
        return 1;
5022
5022
    case HTML_META:
5023
 
        p = q = NULL;
 
5023
        p = q = r = NULL;
5024
5024
        parsedtag_get_value(tag, ATTR_HTTP_EQUIV, &p);
5025
5025
        parsedtag_get_value(tag, ATTR_CONTENT, &q);
5026
5026
#ifdef USE_M17N
 
5027
        parsedtag_get_value(tag, ATTR_CHARSET, &r);
 
5028
        if (r) {
 
5029
            /* <meta charset=""> */
 
5030
            SKIP_BLANKS(r);
 
5031
            meta_charset = wc_guess_charset(r, 0);
 
5032
        }
 
5033
        else
5027
5034
        if (p && q && !strcasecmp(p, "Content-Type") &&
5028
5035
            (q = strcasestr(q, "charset")) != NULL) {
5029
5036
            q += 7;