Enlightenment CVS committal

Author  : raster
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_utils.c 


Log Message:


alvo's patch for efm - fix escaping.

===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_utils.c,v
retrieving revision 1.79
retrieving revision 1.80
diff -u -3 -r1.79 -r1.80
--- e_utils.c   11 Jan 2008 07:33:55 -0000      1.79
+++ e_utils.c   5 Mar 2008 04:00:17 -0000       1.80
@@ -592,15 +592,24 @@
    while (*p)
      {
        if ((q - buf) > 4090) return NULL;
-       if (
+       if (*p == '\'')
+         {
+            *q= '\'';
+            q++;
+            *q = '\\';
+            q++;
+            *q= '\'';
+            q++;
+         }
+       else if (
            (*p == ' ') || (*p == '\t') || (*p == '\n') ||
-           (*p == '\\') || (*p == '\'') || (*p == '\"') ||
+           (*p == '\\') || (*p == '\"') || (*p == '\?') ||
            (*p == ';') || (*p == '!') || (*p == '#') ||
            (*p == '$') || (*p == '%') || (*p == '&') ||
            (*p == '*') || (*p == '(') || (*p == ')') ||
            (*p == '[') || (*p == ']') || (*p == '{') ||
            (*p == '}') || (*p == '|') || (*p == '<') ||
-           (*p == '>') || (*p == '?')
+           (*p == '>')
            )
          {
             *q = '\\';



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to