Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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‎

Lines changed: 2 additions & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /