patch-tools_djvused_cpp 933 B

12345678910111213141516171819202122232425262728
  1. $OpenBSD: patch-tools_djvused_cpp,v 1.1 2016/03/02 20:10:36 juanfra Exp $
  2. "accept documents with duplicate page titles"
  3. http://sourceforge.net/p/djvu/djvulibre-git/ci/77a4dca8dd3acd0acc1680fa14a352c11084e25d/
  4. https://bitbucket.org/jwilk/pdf2djvu/issues/113/duplicate-page-title-1
  5. --- tools/djvused.cpp.orig Sun Feb 8 20:39:42 2015
  6. +++ tools/djvused.cpp Wed Feb 3 01:51:28 2016
  7. @@ -66,6 +66,7 @@
  8. #include "GString.h"
  9. #include "DjVuDocEditor.h"
  10. #include "DjVuDumpHelper.h"
  11. +#include "DjVuMessageLite.h"
  12. #include "BSByteStream.h"
  13. #include "DjVuText.h"
  14. #include "DjVuAnno.h"
  15. @@ -2315,7 +2316,8 @@ execute()
  16. G_CATCH(ex)
  17. {
  18. vprint("Error (%s): %s",
  19. - (const char*)ToNative(token), ex.get_cause());
  20. + (const char*)ToNative(token),
  21. + (const char *)DjVuMessageLite::LookUpUTF8(ex.get_cause()));
  22. if (! verbose)
  23. G_RETHROW;
  24. }