[uim-commit] r398 - trunk/uim

ekato at freedesktop.org ekato at freedesktop.org
Sun Jan 30 00:08:51 PST 2005


Author: ekato
Date: 2005-01-30 00:08:49 -0800 (Sun, 30 Jan 2005)
New Revision: 398

Modified:
   trunk/uim/skk-dic.c
Log:
 * uim/skk-dic.c (quote_word) : Quote double quotation.
   (sanitize_word) : Sanitize double quotation character.


Modified: trunk/uim/skk-dic.c
===================================================================
--- trunk/uim/skk-dic.c	2005-01-30 07:48:46 UTC (rev 397)
+++ trunk/uim/skk-dic.c	2005-01-30 08:08:49 UTC (rev 398)
@@ -1585,6 +1585,10 @@
 	    str = realloc(str, len + strlen("\\073") + 1);
 	    strcat(str, "\\073");
 	    break;
+    case '"':
+	    str = realloc(str, len + strlen("\\\""));
+	    strcat(str, "\\\"");
+	    break;
     default:
 	    str = realloc(str, len + 2);
 	    str[len] = *tmp;
@@ -1617,6 +1621,7 @@
     case '\r':
     case '\\':
     case ';':
+    case '"':
       return quote_word(arg);
     case ' ':
       break;



More information about the Uim-commit mailing list