gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r2618 - Extractor/src/plugins/pdf


From: grothoff
Subject: [GNUnet-SVN] r2618 - Extractor/src/plugins/pdf
Date: Tue, 11 Apr 2006 18:01:22 -0700 (PDT)

Author: grothoff
Date: 2006-04-11 18:01:19 -0700 (Tue, 11 Apr 2006)
New Revision: 2618

Modified:
   Extractor/src/plugins/pdf/pdfextractor.cc
Log:
hack

Modified: Extractor/src/plugins/pdf/pdfextractor.cc
===================================================================
--- Extractor/src/plugins/pdf/pdfextractor.cc   2006-04-10 18:14:16 UTC (rev 
2617)
+++ Extractor/src/plugins/pdf/pdfextractor.cc   2006-04-12 01:01:19 UTC (rev 
2618)
@@ -84,7 +84,16 @@
        for (pos=0;pos<len;pos+=2) {
          u[0] = s1->getChar(pos+1);
          u[1] = s1->getChar(pos);
+         /* Q: is there a difference between UTF-16 and UNICODE?
+            Which one is needed here?  And how to do it on solaris
+            where UNICODE is not known!?
+            See 
http://lists.gnu.org/archive/html/libextractor/2006-04/msg00006.html
+         */
+#ifdef SOLARIS
+         con = (char*) convertToUtf8((const char*) u, 2, "UTF-16");
+#else
          con = (char*) convertToUtf8((const char*) u, 2, "UNICODE");
+#endif
          strcat(result, con);
          free(con);
        }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]