Commit 9ef9b28e authored by Kenichi Handa's avatar Kenichi Handa
Browse files

Adjusted for the name change: xxx-utf-16-{le,be} -> xxx-utf-16{le,be}.

parent 566f38a0
......@@ -520,8 +520,8 @@ for decoding and encoding files, process I/O, etc."
coding-category-iso-8-else 'iso-2022-8bit-ss2
coding-category-ccl nil
coding-category-utf-8 'mule-utf-8
coding-category-utf-16-be 'mule-utf-16-be-with-signature
coding-category-utf-16-le 'mule-utf-16-le-with-signature
coding-category-utf-16-be 'mule-utf-16be-with-signature
coding-category-utf-16-le 'mule-utf-16le-with-signature
coding-category-big5 'chinese-big5
coding-category-raw-text 'raw-text
coding-category-binary 'no-conversion)
......
......@@ -40,7 +40,7 @@
'utf-7 0 ?U
"UTF-7 encoding of Unicode (RFC 2152)"
nil
`((safe-chars . ,(coding-system-get 'utf-16-be 'safe-chars))
`((safe-chars . ,(coding-system-get 'utf-16be 'safe-chars))
(mime-charset . utf-7)
(pre-write-conversion . utf-7-pre-write-conversion)
(post-read-conversion . utf-7-post-read-conversion)))
......@@ -49,7 +49,7 @@
;; 'utf-7-imap 0 ?u
;; "UTF-7 encoding of Unicode, IMAP version (RFC 2060)"
;; nil
;; `((safe-chars . ,(coding-system-get 'utf-16-be 'safe-chars))
;; `((safe-chars . ,(coding-system-get 'utf-16be 'safe-chars))
;; (pre-write-conversion . utf-7-imap-pre-write-conversion)
;; (post-read-conversion . utf-7-imap-post-read-conversion)))
......@@ -75,7 +75,7 @@ IMAP non-nil means use the IMAP version."
(if imap
(subst-char-in-region p (point) ?, ?/))
(base64-decode-region p (point)))
(decode-coding-region p (point) 'utf-16-be)
(decode-coding-region p (point) 'utf-16be)
(save-excursion
(goto-char p)
(delete-backward-char 1)))))))
......@@ -116,7 +116,7 @@ ESC and SKIP-CHARS are adjusted for the normal and IMAP versions."
(save-restriction
;; encode-coding-region doesn't preserve point
(narrow-to-region p (point))
(encode-coding-region p (point-max) 'utf-16-be)
(encode-coding-region p (point-max) 'utf-16be)
(base64-encode-region p (point-max))
(if imap
(subst-char-in-region p (point-max) ?/ ?,))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment