author | Michael Krelin <hacker@klever.net> | 2008-12-02 21:36:54 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2008-12-02 21:36:54 (UTC) |
commit | a2a524f744849e81ec91a7afbaf641d1b57e14b1 (patch) (unidiff) | |
tree | d023154d9485179fdd3001d5816a0ebec05e5d5c | |
parent | 47bf5ab634dc5cc3bd5d71894b2d6681f7a83024 (diff) | |
download | libopkele-a2a524f744849e81ec91a7afbaf641d1b57e14b1.zip libopkele-a2a524f744849e81ec91a7afbaf641d1b57e14b1.tar.gz libopkele-a2a524f744849e81ec91a7afbaf641d1b57e14b1.tar.bz2 |
added passthrough unknown encoding handler to discovery parser
-rw-r--r-- | lib/discovery.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/discovery.cc b/lib/discovery.cc index bd1f917..cbdceb3 100644 --- a/lib/discovery.cc +++ b/lib/discovery.cc | |||
@@ -285,2 +285,3 @@ namespace opkele { | |||
285 | set_character_data_handler(); | 285 | set_character_data_handler(); |
286 | set_unknown_encoding_handler(); | ||
286 | 287 | ||
@@ -571,2 +572,9 @@ namespace opkele { | |||
571 | 572 | ||
573 | int unknown_encoding(const XML_Char *n,XML_Encoding *i) { | ||
574 | for(int ii=0;ii < sizeof(i->map)/sizeof(i->map[0]);++ii) | ||
575 | i->map[ii] = ii; | ||
576 | i->convert = 0; i->release = 0; | ||
577 | return XML_STATUS_OK; | ||
578 | } | ||
579 | |||
572 | }; | 580 | }; |