diff options
| -rw-r--r-- | lisp/international/ccl.el | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/international/ccl.el b/lisp/international/ccl.el index 429e740ec10..3f5e83c7565 100644 --- a/lisp/international/ccl.el +++ b/lisp/international/ccl.el | |||
| @@ -512,6 +512,7 @@ | |||
| 512 | 512 | ||
| 513 | ;; Compile WRITE statement with string argument. | 513 | ;; Compile WRITE statement with string argument. |
| 514 | (defun ccl-compile-write-string (str) | 514 | (defun ccl-compile-write-string (str) |
| 515 | (setq str (string-as-unibyte str)) | ||
| 515 | (let ((len (length str))) | 516 | (let ((len (length str))) |
| 516 | (ccl-embed-code 'write-const-string 1 len) | 517 | (ccl-embed-code 'write-const-string 1 len) |
| 517 | (ccl-embed-string len str)) | 518 | (ccl-embed-string len str)) |
| @@ -723,6 +724,7 @@ | |||
| 723 | (ccl-embed-code 'write-const-jump 0 ccl-loop-head) | 724 | (ccl-embed-code 'write-const-jump 0 ccl-loop-head) |
| 724 | (ccl-embed-data arg)) | 725 | (ccl-embed-data arg)) |
| 725 | ((stringp arg) | 726 | ((stringp arg) |
| 727 | (setq arg (string-as-unibyte arg)) | ||
| 726 | (let ((len (length arg)) | 728 | (let ((len (length arg)) |
| 727 | (i 0)) | 729 | (i 0)) |
| 728 | (ccl-embed-code 'write-string-jump 0 ccl-loop-head) | 730 | (ccl-embed-code 'write-string-jump 0 ccl-loop-head) |