aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/glob.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glob.c')
-rw-r--r--src/glob.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glob.c b/src/glob.c
index 2c955ee..9aa499d 100644
--- a/src/glob.c
+++ b/src/glob.c
@@ -319,7 +319,7 @@ teco_state_glob_pattern_done(teco_machine_main_t *ctx, const teco_string_t *str,
g_assert(glob_reg != NULL);
if (!glob_reg->vtable->undo_set_string(glob_reg, error) ||
!glob_reg->vtable->set_string(glob_reg, filename, strlen(filename),
- SC_CP_UTF8, error))
+ teco_default_codepage(), error))
return NULL;
}