Committed by Greg Sabino Mullane <[email protected]>
SvUTF8_on is NOT enough here. Total testing fail: should be
catching this.
---
dbdimp.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dbdimp.c b/dbdimp.c
index dc680b2..0e3f1e7 100644
--- a/dbdimp.c
+++ b/dbdimp.c
@@ -3578,7 +3578,7 @@ AV * dbd_st_fetch (SV * sth, imp_sth_t * imp_sth)
SvUTF8_off(sv);
}
else {
- SvUTF8_on(sv);
+ sv_utf8_upgrade(sv);
}
}
}
@@ -3966,7 +3966,7 @@ int pg_db_getcopydata (SV * dbh, SV * dataline, int async)
if (copystatus > 0) {
sv_setpv(dataline, tempbuf);
if (imp_dbh->pg_utf8_flag)
- SvUTF8_on(dataline);
+ sv_utf8_upgrade(dataline)
TRACE_PQFREEMEM;
PQfreemem(tempbuf);
}
--
1.8.4