[Groonga-commit] groonga/groonga at 59a2bac [master] windows tokenizer mecab: use "\" for path separator

Back to archive index

Kouhei Sutou null+****@clear*****
Sun Oct 18 15:09:41 JST 2015


Kouhei Sutou	2015-10-18 15:09:41 +0900 (Sun, 18 Oct 2015)

  New Revision: 59a2bac1e3b02a68cbdb4c25fea12b9d8b4b3764
  https://github.com/groonga/groonga/commit/59a2bac1e3b02a68cbdb4c25fea12b9d8b4b3764

  Message:
    windows tokenizer mecab: use "\" for path separator

  Modified files:
    plugins/tokenizers/mecab.c

  Modified: plugins/tokenizers/mecab.c (+8 -0)
===================================================================
--- plugins/tokenizers/mecab.c    2015-10-18 13:27:31 +0900 (228aed3)
+++ plugins/tokenizers/mecab.c    2015-10-18 15:09:41 +0900 (45fd406)
@@ -295,6 +295,14 @@ mecab_create(grn_ctx *ctx)
     grn_strcat(windows_mecab_rc_file,
                PATH_MAX,
                GRN_BUNDLED_MECAB_RELATIVE_RC_PATH);
+    {
+      char *c;
+      for (c = windows_mecab_rc_file; *c != '\0'; c++) {
+        if (*c == '/') {
+          *c == '\\';
+        }
+      }
+    }
     argv[argc++] = windows_mecab_rc_file;
   }
 # else /* WIN32 */
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index