diff options
Diffstat (limited to 'src/bin/psql/command.c')
-rw-r--r-- | src/bin/psql/command.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c index 9e62e153853..506187cfdd5 100644 --- a/src/bin/psql/command.c +++ b/src/bin/psql/command.c @@ -1004,7 +1004,7 @@ exec_command_edit(PsqlScanState scan_state, bool active_branch, { expand_tilde(&fname); if (fname) - canonicalize_path(fname); + canonicalize_path_enc(fname, pset.encoding); /* If query_buf is empty, recall previous query for editing */ copy_previous_query(query_buf, previous_buf); @@ -2577,7 +2577,7 @@ exec_command_write(PsqlScanState scan_state, bool active_branch, } else { - canonicalize_path(fname); + canonicalize_path_enc(fname, pset.encoding); fd = fopen(fname, "w"); } if (!fd) @@ -3923,7 +3923,7 @@ process_file(char *filename, bool use_relative_path) } else if (strcmp(filename, "-") != 0) { - canonicalize_path(filename); + canonicalize_path_enc(filename, pset.encoding); /* * If we were asked to resolve the pathname relative to the location @@ -3937,7 +3937,7 @@ process_file(char *filename, bool use_relative_path) strlcpy(relpath, pset.inputfile, sizeof(relpath)); get_parent_directory(relpath); join_path_components(relpath, relpath, filename); - canonicalize_path(relpath); + canonicalize_path_enc(relpath, pset.encoding); filename = relpath; } |