diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2013-07-02 21:15:42 +0200 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2013-07-02 21:16:44 +0200 |
commit | 2945780a5a04714e683529c0e0284d0e55326db5 (patch) | |
tree | ac560cb7c8bcc686b181cd4579898c713bc220bc /elisp | |
parent | ae7bb5d6ff1595a28557d7cda2416e1cbce680f3 (diff) | |
download | geiser-2945780a5a04714e683529c0e0284d0e55326db5.tar.gz geiser-2945780a5a04714e683529c0e0284d0e55326db5.tar.bz2 |
Real solution for the non-ascii-history problem
We were using a history entry separator including \0 that wasn't
writeable as an utf-8 file. Changing the separator to \n}{\n allows
using UTF-8 characters in the REPL which are correctly read back.
Diffstat (limited to 'elisp')
-rw-r--r-- | elisp/geiser-repl.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/elisp/geiser-repl.el b/elisp/geiser-repl.el index 324f93a..f0c495e 100644 --- a/elisp/geiser-repl.el +++ b/elisp/geiser-repl.el @@ -404,7 +404,7 @@ module command as a string") ;;; REPL history -(defconst geiser-repl--history-separator "\n\0\n") +(defconst geiser-repl--history-separator "\n}{\n") (defsubst geiser-repl--history-file () (format "%s.%s" geiser-repl-history-filename geiser-impl--implementation)) @@ -412,13 +412,13 @@ module command as a string") (defun geiser-repl--read-input-ring () (let ((comint-input-ring-file-name (geiser-repl--history-file)) (comint-input-ring-separator geiser-repl--history-separator) - (buffer-file-coding-system 'raw-text)) + (buffer-file-coding-system 'utf-8)) (comint-read-input-ring t))) (defun geiser-repl--write-input-ring () (let ((comint-input-ring-file-name (geiser-repl--history-file)) (comint-input-ring-separator geiser-repl--history-separator) - (buffer-file-coding-system 'raw-text)) + (buffer-file-coding-system 'utf-8)) (comint-write-input-ring))) (defun geiser-repl--history-setup () |