gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r11687 - in Extractor: . doc po src/main src/plugins


From: gnunet
Subject: [GNUnet-SVN] r11687 - in Extractor: . doc po src/main src/plugins
Date: Sat, 12 Jun 2010 16:23:43 +0200

Author: grothoff
Date: 2010-06-12 16:23:43 +0200 (Sat, 12 Jun 2010)
New Revision: 11687

Modified:
   Extractor/ChangeLog
   Extractor/doc/version.texi
   Extractor/po/de.po
   Extractor/po/fr.po
   Extractor/po/ga.po
   Extractor/po/libextractor.pot
   Extractor/po/nl.po
   Extractor/po/ro.po
   Extractor/po/rw.po
   Extractor/po/sv.po
   Extractor/po/vi.po
   Extractor/src/main/extract.c
   Extractor/src/plugins/deb_extractor.c
   Extractor/src/plugins/html_extractor.c
   Extractor/src/plugins/id3_extractor.c
   Extractor/src/plugins/jpeg_extractor.c
   Extractor/src/plugins/man_extractor.c
   Extractor/src/plugins/mime_extractor.c
   Extractor/src/plugins/odf_extractor.c
Log:
pass unsigned chars only to isXXXX functions

Modified: Extractor/ChangeLog
===================================================================
--- Extractor/ChangeLog 2010-06-11 23:07:45 UTC (rev 11686)
+++ Extractor/ChangeLog 2010-06-12 14:23:43 UTC (rev 11687)
@@ -1,3 +1,6 @@
+Sat Jun 12 16:23:14 CEST 2010
+       Only pass 'unsigned char's to 'isspace' and similar functions. -CG
+       
 Sun Mar 14 00:09:45 CET 2010
        Releasing libextractor 0.6.1.
 

Modified: Extractor/doc/version.texi
===================================================================
--- Extractor/doc/version.texi  2010-06-11 23:07:45 UTC (rev 11686)
+++ Extractor/doc/version.texi  2010-06-12 14:23:43 UTC (rev 11687)
@@ -1,4 +1,4 @@
address@hidden UPDATED 17 May 2010
address@hidden UPDATED-MONTH May 2010
address@hidden UPDATED 1 April 2010
address@hidden UPDATED-MONTH April 2010
 @set EDITION 0.6.1
 @set VERSION 0.6.1

Modified: Extractor/po/de.po
===================================================================
--- Extractor/po/de.po  2010-06-11 23:07:45 UTC (rev 11686)
+++ Extractor/po/de.po  2010-06-12 14:23:43 UTC (rev 11687)
@@ -8,7 +8,7 @@
 msgstr ""
 "Project-Id-Version: libextractor 0.5.14\n"
 "Report-Msgid-Bugs-To: address@hidden"
-"POT-Creation-Date: 2010-03-14 00:09+0100\n"
+"POT-Creation-Date: 2010-05-31 14:54+0200\n"
 "PO-Revision-Date: 2007-03-23 23:16+0100\n"
 "Last-Translator: Nils Durner <address@hidden>\n"
 "Language-Team: German <address@hidden>\n"
@@ -891,7 +891,7 @@
 msgid "%s: option `-W %s' doesn't allow an argument\n"
 msgstr "%s: Option »-W %s« erwartet kein Argument\n"
 
-#: src/main/extractor.c:2158
+#: src/main/extractor.c:2153
 #, c-format
 msgid "Initialization of plugin mechanism failed: %s!\n"
 msgstr "Initialisierung des Plugin-Mechanismus' ist fehlgeschlagen: %s.\n"

Modified: Extractor/po/fr.po
===================================================================
--- Extractor/po/fr.po  2010-06-11 23:07:45 UTC (rev 11686)
+++ Extractor/po/fr.po  2010-06-12 14:23:43 UTC (rev 11687)
@@ -7,7 +7,7 @@
 msgstr ""
 "Project-Id-Version: libextractor-0.5.20a\n"
 "Report-Msgid-Bugs-To: address@hidden"
-"POT-Creation-Date: 2010-03-14 00:09+0100\n"
+"POT-Creation-Date: 2010-05-31 14:54+0200\n"
 "PO-Revision-Date: 2008-08-24 19:08+0100\n"
 "Last-Translator: Nicolas Provost <address@hidden>\n"
 "Language-Team: French <address@hidden>\n"
@@ -912,7 +912,7 @@
 msgid "%s: option `-W %s' doesn't allow an argument\n"
 msgstr "%s: l'option `-W %s' ne prend pas d'argument\n"
 
-#: src/main/extractor.c:2158
+#: src/main/extractor.c:2153
 #, c-format
 msgid "Initialization of plugin mechanism failed: %s!\n"
 msgstr "Echec de l'initialisation du module %s !\n"

Modified: Extractor/po/ga.po
===================================================================
--- Extractor/po/ga.po  2010-06-11 23:07:45 UTC (rev 11686)
+++ Extractor/po/ga.po  2010-06-12 14:23:43 UTC (rev 11687)
@@ -6,7 +6,7 @@
 msgstr ""
 "Project-Id-Version: libextractor 0.5.20\n"
 "Report-Msgid-Bugs-To: address@hidden"
-"POT-Creation-Date: 2010-03-14 00:09+0100\n"
+"POT-Creation-Date: 2010-05-31 14:54+0200\n"
 "PO-Revision-Date: 2008-03-21 20:46-0700\n"
 "Last-Translator: Kevin Scannell <address@hidden>\n"
 "Language-Team: Irish <address@hidden>\n"
@@ -889,7 +889,7 @@
 msgid "%s: option `-W %s' doesn't allow an argument\n"
 msgstr "%s: n� cheada�tear arg�int i ndiaidh na rogha `-W %s'\n"
 
-#: src/main/extractor.c:2158
+#: src/main/extractor.c:2153
 #, c-format
 msgid "Initialization of plugin mechanism failed: %s!\n"
 msgstr "Theip ar th�s� meicn�ocht na mbreise�n: %s!\n"

Modified: Extractor/po/libextractor.pot
===================================================================
--- Extractor/po/libextractor.pot       2010-06-11 23:07:45 UTC (rev 11686)
+++ Extractor/po/libextractor.pot       2010-06-12 14:23:43 UTC (rev 11687)
@@ -8,7 +8,7 @@
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: address@hidden"
-"POT-Creation-Date: 2010-03-14 00:09+0100\n"
+"POT-Creation-Date: 2010-05-31 14:54+0200\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <address@hidden>\n"
 "Language-Team: LANGUAGE <address@hidden>\n"
@@ -885,7 +885,7 @@
 msgid "%s: option `-W %s' doesn't allow an argument\n"
 msgstr ""
 
-#: src/main/extractor.c:2158
+#: src/main/extractor.c:2153
 #, c-format
 msgid "Initialization of plugin mechanism failed: %s!\n"
 msgstr ""

Modified: Extractor/po/nl.po
===================================================================
--- Extractor/po/nl.po  2010-06-11 23:07:45 UTC (rev 11686)
+++ Extractor/po/nl.po  2010-06-12 14:23:43 UTC (rev 11687)
@@ -7,7 +7,7 @@
 msgstr ""
 "Project-Id-Version: libextractor-0.5.20a\n"
 "Report-Msgid-Bugs-To: address@hidden"
-"POT-Creation-Date: 2010-03-14 00:09+0100\n"
+"POT-Creation-Date: 2010-05-31 14:54+0200\n"
 "PO-Revision-Date: 2009-03-08 16:59+0100\n"
 "Last-Translator: Erwin Poeze <address@hidden>\n"
 "Language-Team: Dutch <address@hidden>\n"
@@ -891,7 +891,7 @@
 msgid "%s: option `-W %s' doesn't allow an argument\n"
 msgstr "%s: optie '-W %s' staat geen argument toe\n"
 
-#: src/main/extractor.c:2158
+#: src/main/extractor.c:2153
 #, c-format
 msgid "Initialization of plugin mechanism failed: %s!\n"
 msgstr "Initialisatie van plugin-mechanisme is mislukt: %s\n"

Modified: Extractor/po/ro.po
===================================================================
--- Extractor/po/ro.po  2010-06-11 23:07:45 UTC (rev 11686)
+++ Extractor/po/ro.po  2010-06-12 14:23:43 UTC (rev 11687)
@@ -9,7 +9,7 @@
 msgstr ""
 "Project-Id-Version: libextractor 0.5.3\n"
 "Report-Msgid-Bugs-To: address@hidden"
-"POT-Creation-Date: 2010-03-14 00:09+0100\n"
+"POT-Creation-Date: 2010-05-31 14:54+0200\n"
 "PO-Revision-Date: 2005-08-16 12:00-0500\n"
 "Last-Translator: Laurentiu Buzdugan <address@hidden>\n"
 "Language-Team: Romanian <address@hidden>\n"
@@ -893,7 +893,7 @@
 msgid "%s: option `-W %s' doesn't allow an argument\n"
 msgstr "%s: op�iunea `-W %s' nu permite un argument\n"
 
-#: src/main/extractor.c:2158
+#: src/main/extractor.c:2153
 #, c-format
 msgid "Initialization of plugin mechanism failed: %s!\n"
 msgstr "ini�ializare mecanismului de plugin a e�uat: %s!\n"

Modified: Extractor/po/rw.po
===================================================================
--- Extractor/po/rw.po  2010-06-11 23:07:45 UTC (rev 11686)
+++ Extractor/po/rw.po  2010-06-12 14:23:43 UTC (rev 11687)
@@ -16,7 +16,7 @@
 msgstr ""
 "Project-Id-Version: libextractor 0.4.2\n"
 "Report-Msgid-Bugs-To: address@hidden"
-"POT-Creation-Date: 2010-03-14 00:09+0100\n"
+"POT-Creation-Date: 2010-05-31 14:54+0200\n"
 "PO-Revision-Date: 2005-04-04 10:55-0700\n"
 "Last-Translator: Steven Michael Murphy <address@hidden>\n"
 "Language-Team: Kinyarwanda <address@hidden>\n"
@@ -955,7 +955,7 @@
 msgid "%s: option `-W %s' doesn't allow an argument\n"
 msgstr "%s:Ihitamo Kwemerera"
 
-#: src/main/extractor.c:2158
+#: src/main/extractor.c:2153
 #, fuzzy, c-format
 msgid "Initialization of plugin mechanism failed: %s!\n"
 msgstr "Bya Byanze"

Modified: Extractor/po/sv.po
===================================================================
--- Extractor/po/sv.po  2010-06-11 23:07:45 UTC (rev 11686)
+++ Extractor/po/sv.po  2010-06-12 14:23:43 UTC (rev 11687)
@@ -7,7 +7,7 @@
 msgstr ""
 "Project-Id-Version: libextractor 0.5.22\n"
 "Report-Msgid-Bugs-To: address@hidden"
-"POT-Creation-Date: 2010-03-14 00:09+0100\n"
+"POT-Creation-Date: 2010-05-31 14:54+0200\n"
 "PO-Revision-Date: 2009-05-12 17:45+0100\n"
 "Last-Translator: Daniel Nylander <address@hidden>\n"
 "Language-Team: Swedish <address@hidden>\n"
@@ -888,7 +888,7 @@
 msgid "%s: option `-W %s' doesn't allow an argument\n"
 msgstr "%s: flagga \"-W %s\" tillåter inte ett argument\n"
 
-#: src/main/extractor.c:2158
+#: src/main/extractor.c:2153
 #, c-format
 msgid "Initialization of plugin mechanism failed: %s!\n"
 msgstr "Initiering av insticksmekanism misslyckades: %s!\n"

Modified: Extractor/po/vi.po
===================================================================
--- Extractor/po/vi.po  2010-06-11 23:07:45 UTC (rev 11686)
+++ Extractor/po/vi.po  2010-06-12 14:23:43 UTC (rev 11687)
@@ -8,7 +8,7 @@
 msgstr ""
 "Project-Id-Version: libextractor 0.6.0\n"
 "Report-Msgid-Bugs-To: address@hidden"
-"POT-Creation-Date: 2010-03-14 00:09+0100\n"
+"POT-Creation-Date: 2010-05-31 14:54+0200\n"
 "PO-Revision-Date: 2010-02-11 00:13+0930\n"
 "Last-Translator: Clytie Siddall <address@hidden>\n"
 "Language-Team: Vietnamese <address@hidden>\n"
@@ -887,7 +887,7 @@
 msgid "%s: option `-W %s' doesn't allow an argument\n"
 msgstr "%s: tùy chọn « -W %s » không cho phép đối số\n"
 
-#: src/main/extractor.c:2158
+#: src/main/extractor.c:2153
 #, c-format
 msgid "Initialization of plugin mechanism failed: %s!\n"
 msgstr "Việc khởi động cơ chế cầm phít bị lỗi: %s\n"

Modified: Extractor/src/main/extract.c
===================================================================
--- Extractor/src/main/extract.c        2010-06-11 23:07:45 UTC (rev 11686)
+++ Extractor/src/main/extract.c        2010-06-12 14:23:43 UTC (rev 11687)
@@ -128,7 +128,7 @@
   OUTER:
     while (ml - p > 78 - slen) {
       for (j=p+78-slen;j>p;j--) {
-       if (isspace(trans[j])) {
+       if (isspace( (unsigned char) trans[j])) {
          scp = malloc(j-p+1);
          memcpy(scp,
                 &trans[p],
@@ -372,7 +372,7 @@
     if (! isalnum(temp[i]) )
       temp[i] = '_';
     else
-      temp[i] = tolower(temp[i]);
+      temp[i] = tolower( (unsigned int) temp[i]);
   }
   return temp;
 }

Modified: Extractor/src/plugins/deb_extractor.c
===================================================================
--- Extractor/src/plugins/deb_extractor.c       2010-06-11 23:07:45 UTC (rev 
11686)
+++ Extractor/src/plugins/deb_extractor.c       2010-06-12 14:23:43 UTC (rev 
11687)
@@ -104,7 +104,7 @@
           colon++;
         }
       colon++;
-      while ((colon < size) && (isspace (data[colon])))
+      while ((colon < size) && (isspace ((unsigned char) data[colon])))
         colon++;
       eol = colon;
       while ((eol < size) &&

Modified: Extractor/src/plugins/html_extractor.c
===================================================================
--- Extractor/src/plugins/html_extractor.c      2010-06-11 23:07:45 UTC (rev 
11686)
+++ Extractor/src/plugins/html_extractor.c      2010-06-12 14:23:43 UTC (rev 
11687)
@@ -100,7 +100,7 @@
 {
   size_t p = *pos;
 
-  while ((p < size) && (isspace (data[p])))
+  while ((p < size) && (isspace ( (unsigned char) data[p])))
     {
       if (data[p] == '\0')
         return 0;
@@ -115,7 +115,7 @@
 {
   size_t p = *pos;
 
-  while ((p < size) && (isalpha (data[p])))
+  while ((p < size) && (isalpha ( (unsigned char) data[p])))
     {
       if (data[p] == '\0')
         return 0;
@@ -168,7 +168,7 @@
             }
           else
             {
-              while ((start < end) && (!isspace (*start)))
+              while ((start < end) && (!isspace ( (unsigned char) *start)))
                 start++;
             }
           *mend = start;

Modified: Extractor/src/plugins/id3_extractor.c
===================================================================
--- Extractor/src/plugins/id3_extractor.c       2010-06-11 23:07:45 UTC (rev 
11686)
+++ Extractor/src/plugins/id3_extractor.c       2010-06-12 14:23:43 UTC (rev 
11687)
@@ -202,7 +202,7 @@
 static void
 trim (char *k)
 {
-  while ((strlen (k) > 0) && (isspace (k[strlen (k) - 1])))
+  while ((strlen (k) > 0) && (isspace ((unsigned char) k[strlen (k) - 1])))
     k[strlen (k) - 1] = '\0';
 }
 

Modified: Extractor/src/plugins/jpeg_extractor.c
===================================================================
--- Extractor/src/plugins/jpeg_extractor.c      2010-06-11 23:07:45 UTC (rev 
11686)
+++ Extractor/src/plugins/jpeg_extractor.c      2010-06-12 14:23:43 UTC (rev 
11687)
@@ -118,7 +118,7 @@
       ch = NEXTC (data, end);
       if ((ch == '\r') || (ch == '\n'))
         comment[pos++] = '\n';
-      else if (isprint (ch))
+      else if (isprint ((unsigned char) ch))
         comment[pos++] = ch;
       length--;
     }

Modified: Extractor/src/plugins/man_extractor.c
===================================================================
--- Extractor/src/plugins/man_extractor.c       2010-06-11 23:07:45 UTC (rev 
11686)
+++ Extractor/src/plugins/man_extractor.c       2010-06-12 14:23:43 UTC (rev 
11687)
@@ -116,7 +116,7 @@
                          &buf[pos],
                          xlen)) || ((pos != 0) && (buf[pos - 1] != '\n'))))
     {
-      if (!isgraph (buf[pos]) && !isspace (buf[pos]))
+      if (!isgraph (buf[pos]) && !isspace ((unsigned char) buf[pos]))
         return 0;
       pos++;
     }

Modified: Extractor/src/plugins/mime_extractor.c
===================================================================
--- Extractor/src/plugins/mime_extractor.c      2010-06-11 23:07:45 UTC (rev 
11686)
+++ Extractor/src/plugins/mime_extractor.c      2010-06-12 14:23:43 UTC (rev 
11687)
@@ -129,7 +129,7 @@
 
   while (i < len)
     {
-      if (!isprint (data[i]))
+      if (!isprint ( (unsigned char) data[i]))
         return 0;
       switch (state)
         {
@@ -137,7 +137,7 @@
           if (i + 6 >= len)
             return 0;
           else if (memcmp (data + i, "<?xml", 5) == 0
-                   && isspace (*(data + i + 5)))
+                   && isspace ( (unsigned char) *(data + i + 5)))
             state = XMLCLOSE;
           break;
         case XMLCLOSE:
@@ -150,7 +150,7 @@
           if (i + 5 >= len)
             return 0;
           else if (memcmp (data + i, "<svg", 4) == 0
-                   && isspace (*(data + i + 4)))
+                   && isspace ( (unsigned char) *(data + i + 4)))
             return 1;
           break;
         default:

Modified: Extractor/src/plugins/odf_extractor.c
===================================================================
--- Extractor/src/plugins/odf_extractor.c       2010-06-11 23:07:45 UTC (rev 
11686)
+++ Extractor/src/plugins/odf_extractor.c       2010-06-12 14:23:43 UTC (rev 
11687)
@@ -93,7 +93,7 @@
        /* found something */
         buf[buf_size] = '\0';
         while ( (0 > buf_size) &&
-               isspace(buf[buf_size - 1]))
+               isspace( (unsigned char) buf[buf_size - 1]))
           buf[--buf_size] = '\0';
         if('\0' == buf[0]) {
           free(buf);




reply via email to

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