yencoding.patch 876 B

1234567891011121314151617181920212223242526
  1. --- a/encoding.c 2014-11-21 16:04:38.000045651 +0300
  2. +++ b/encoding.c 2014-11-21 16:07:21.529988060 +0300
  3. @@ -45,6 +45,10 @@
  4. #include <libxml/globals.h>
  5. #include <libxml/xmlerror.h>
  6. +#ifndef ARCADIA_LIBXML_DISABLE_EXTRA_ENCODINGS
  7. +#include "yencoding.h"
  8. +#endif
  9. +
  10. #include "buf.h"
  11. #include "enc.h"
  12. @@ -1424,6 +1428,12 @@ xmlInitCharEncodingHandlers(void) {
  13. xmlNewCharEncodingHandler("ISO-8859-1", isolat1ToUTF8, UTF8Toisolat1);
  14. xmlNewCharEncodingHandler("ASCII", asciiToUTF8, UTF8Toascii);
  15. xmlNewCharEncodingHandler("US-ASCII", asciiToUTF8, UTF8Toascii);
  16. +
  17. +#ifndef ARCADIA_LIBXML_DISABLE_EXTRA_ENCODINGS
  18. + xmlNewCharEncodingHandler("windows-1251", win1251ToUTF8, UTF8Towin1251);
  19. + xmlNewCharEncodingHandler("koi8-r", koi8ToUTF8, UTF8Tokoi8);
  20. +#endif
  21. +
  22. #ifdef LIBXML_HTML_ENABLED
  23. xmlNewCharEncodingHandler("HTML", NULL, UTF8ToHtml);
  24. #endif