branch: elpa/emacsql
commit 127bb98df20d84117d34822f50ea584af81b19c3
Author: Christopher Wellons <well...@nullprogram.com>
Commit: Christopher Wellons <well...@nullprogram.com>

    Set coding system to utf-8-auto for sqlite.
---
 emacsql-sqlite.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/emacsql-sqlite.el b/emacsql-sqlite.el
index 5a60eec670..f236e631e0 100644
--- a/emacsql-sqlite.el
+++ b/emacsql-sqlite.el
@@ -31,6 +31,8 @@ If FILE is nil use an in-memory database.
 :debug LOG -- When non-nil, log all SQLite commands to a log
 buffer. This is for debugging purposes."
   (let* ((process-connection-type nil)  ; use a pipe
+         (coding-system-for-write 'utf-8-auto)
+         (coding-system-for-read 'utf-8-auto)
          (buffer (generate-new-buffer " *emacsql-sqlite*"))
          (fullfile (if file (expand-file-name file) ":memory:"))
          (process (start-process

Reply via email to