Skip to content

Commit b858f7f

Browse files
Fix: Non-ASCC characters in Sage text or comments.
The fix is to temporarily set the write-coding-system to 'utf-8 in ob-sagemath.el.
1 parent 68d3e51 commit b858f7f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ob-sagemath.el

+2-1
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,8 @@ buffer."
255255
(raw-code (org-babel-expand-body:generic
256256
(encode-coding-string body 'utf-8)
257257
params (org-babel-variable-assignments:python params)))
258-
(buf (current-buffer)))
258+
(buf (current-buffer))
259+
(coding-system-for-write 'utf-8))
259260

260261
(ob-sagemath--init session sync)
261262

0 commit comments

Comments
 (0)