added :external-format :utf8 on the octets-to-string call
authorRuss Tyndall <russ@acceleration.net>
Fri, 10 Oct 2008 20:18:29 +0000 (16:18 -0400)
committerNathan Bird <nathan@acceleration.net>
Mon, 2 Feb 2009 19:31:28 +0000 (14:31 -0500)
db-postgresql-socket/postgresql-socket-api.lisp

index 64c424043ddd5720f0b0152a478401980ca0cbfb..2989d578cd3b94dbfd7a071206764b4cfd1e186a 100644 (file)
@@ -226,7 +226,7 @@ socket interface"
     (declare (type (simple-array (unsigned-byte 8) (*)) bytes))
     (read-sequence bytes stream)
     (if allow-wide
-        (sb-ext:octets-to-string bytes)
+        (sb-ext:octets-to-string bytes :external-format :utf8)
         (map 'string #'code-char bytes))))
 
 ;;; Support for encrypted password transmission