[uim-commit] r2631 - branches/1.0/uim

ekato at freedesktop.org ekato at freedesktop.org
Sat Dec 17 04:46:37 PST 2005


Author: ekato
Date: 2005-12-17 04:46:33 -0800 (Sat, 17 Dec 2005)
New Revision: 2631

Modified:
   branches/1.0/uim/skk.c
Log:
* uim/skk.c : Port r2630 from trunk.


Modified: branches/1.0/uim/skk.c
===================================================================
--- branches/1.0/uim/skk.c	2005-12-17 12:44:32 UTC (rev 2630)
+++ branches/1.0/uim/skk.c	2005-12-17 12:46:33 UTC (rev 2631)
@@ -3362,10 +3362,14 @@
 {
   char buf[512], *p;
   FILE *fp;
+  int i = 0;
   uim_lisp ret_ = uim_scm_f();
 
-  if (!skk_isalpha(str[0]))
-    return ret_;
+  while (str[i] != '\0') {
+    if (!skk_isalpha(str[i]))
+      return ret_;
+    i++;
+  }
 
   fp = look_popen(str);
   if (!fp) {
@@ -3394,11 +3398,14 @@
 {
   char buf[512], *p;
   FILE *fp;
-  int i, nr_pre, c = 0;
+  int i = 0, nr_pre, c = 0;
   int *matched;
 
-  if (!skk_isalpha(str[0]))
-    return;
+  while (str[i] != '\0') {
+    if (!skk_isalpha(str[0]))
+      return;
+    i++;
+  }
 
   fp = look_popen(str);
   if (!fp) {



More information about the uim-commit mailing list