summaryrefslogtreecommitdiff
path: root/src/charset
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2008-10-14 15:44:05 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2008-10-14 15:44:05 +0000
commit6df8f99a707326655b4f285920f19fef6d9eb90a (patch)
tree893e8d1ff525027eb482957c259d8885c3436ae2 /src/charset
parent58837fe7fb2196d39f09425329087b6b48aace46 (diff)
downloadlibhubbub-6df8f99a707326655b4f285920f19fef6d9eb90a.tar.gz
libhubbub-6df8f99a707326655b4f285920f19fef6d9eb90a.tar.bz2
Fixup dubious charsets
svn path=/trunk/hubbub/; revision=5575
Diffstat (limited to 'src/charset')
-rw-r--r--src/charset/detect.c1
-rw-r--r--src/charset/detect.h3
2 files changed, 3 insertions, 1 deletions
diff --git a/src/charset/detect.c b/src/charset/detect.c
index 755d9fd..562c12d 100644
--- a/src/charset/detect.c
+++ b/src/charset/detect.c
@@ -25,7 +25,6 @@ static bool hubbub_charset_get_attribute(const uint8_t **data,
const uint8_t *end,
const uint8_t **name, uint32_t *namelen,
const uint8_t **value, uint32_t *valuelen);
-static void hubbub_charset_fix_charset(uint16_t *charset);
/**
* Extract a charset from a chunk of data
diff --git a/src/charset/detect.h b/src/charset/detect.h
index cb837d0..ec97267 100644
--- a/src/charset/detect.h
+++ b/src/charset/detect.h
@@ -20,5 +20,8 @@ parserutils_error hubbub_charset_extract(const uint8_t *data, size_t len,
uint16_t hubbub_charset_parse_content(const uint8_t *value,
uint32_t valuelen);
+/* Fix up frequently misused character sets */
+void hubbub_charset_fix_charset(uint16_t *charset);
+
#endif