aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/spawn.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/spawn.c')
-rw-r--r--src/spawn.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/spawn.c b/src/spawn.c
index c1fb426..4317288 100644
--- a/src/spawn.c
+++ b/src/spawn.c
@@ -164,6 +164,11 @@ teco_state_execute_initial(teco_machine_main_t *ctx, GError **error)
if (ctx->mode > TECO_MODE_NORMAL)
return TRUE;
+ /*
+ * Command-lines and file names are always assumed to be UTF-8.
+ */
+ teco_undo_guint(ctx->expectstring.machine.codepage) = SC_CP_UTF8;
+
if (!teco_expressions_eval(FALSE, error))
return FALSE;