Navigation Menu

Skip to content

Commit

Permalink
windows tokenizer mecab: use "\" for path separator
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Oct 18, 2015
1 parent 65f5b82 commit 59a2bac
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions plugins/tokenizers/mecab.c
Expand Up @@ -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 */
Expand Down

0 comments on commit 59a2bac

Please sign in to comment.