aboutsummaryrefslogtreecommitdiff
path: root/src/bin/psql/copy.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/psql/copy.c')
-rw-r--r--src/bin/psql/copy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/psql/copy.c b/src/bin/psql/copy.c
index b13777c6865..92c955b637a 100644
--- a/src/bin/psql/copy.c
+++ b/src/bin/psql/copy.c
@@ -280,7 +280,7 @@ do_copy(const char *args)
/* prepare to read or write the target file */
if (options->file && !options->program)
- canonicalize_path(options->file);
+ canonicalize_path_enc(options->file, pset.encoding);
if (options->from)
{