*
* Copyright 2000 by PostgreSQL Global Development Group
*
- * $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.46 2001/02/10 02:31:27 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.47 2001/02/17 10:03:33 ishii Exp $
*/
#include "postgres_fe.h"
#include "command.h"
success = false;
}
else
- success = do_lo_import(opt1, opt2);
+ success = do_lo_import(opt1, opt2);
}
else if (strcmp(cmd + 3, "list") == 0)
else
{
- *tmp++ = *p;
+ int i;
+ const unsigned char *mp = p;
+
+ for (i = 0;i < PQmblen(p, pset.encoding);i++)
+ {
+ *tmp++ = *mp++;
+ }
esc = false;
}
}