annotate lisp/international/utf-7.el @ 87595:4c6c79916238

* configure.in: Remove references to unsupported systems. * notes/copyright: * MAINTAINERS: Remove references to files that have been removed. * os.texi (System Environment): Remove references to OSes that are not supported anymore. * PROBLEMS: * MACHINES: Remove references to systems not supported anymore. * makefile.w32-in: * Makefile.in: Remove references to Xenix. * gnus.el (gnus-use-long-file-name): Remove reference to xenix. * obsolete/x-apollo.el: Remove file for unsupported system. * term/x-win.el (vendor-specific-keysyms): Remove reference to Apollo. * progmodes/gud.el (gud-dgux-p): Remove. (dbx): Remove reference to dgux. * progmodes/ps-mode.el (ps-mode-print-function): * ps-print.el (ps-lp-system): * paths.el (rmail-spool-directory): * ls-lisp.el (ls-lisp-emulation): * lpr.el (lpr-lp-system): * dired.el (dired-chown-program): Remove references to dgux. * m/7300.h: * m/acorn.h: * m/alliant-2800.h: * m/alliant.h: * m/alliant1.h: * m/alliant4.h: * m/altos.h: * m/amdahl.h: * m/apollo.h: * m/att3b.h: * m/aviion-intel.h: * m/aviion.h: * m/celerity.h: * m/clipper.h: * m/cnvrgnt.h: * m/convex.h: * m/cydra5.h: * m/delta88k.h: * m/dpx2.h: * m/dual.h: * m/elxsi.h: * m/f301.h: * m/gould-np1.h: * m/gould.h: * m/i860.h: * m/ibmps2-aix.h: * m/ibmrt-aix.h: * m/ibmrt.h: * m/irist.h: * m/is386.h: * m/isi-ov.h: * m/mega68.h: * m/mg1.h: * m/news-r6.h: * m/news-risc.h: * m/news.h: * m/nh3000.h: * m/nh4000.h: * m/ns16000.h: * m/ns32000.h: * m/nu.h: * m/orion.h: * m/orion105.h: * m/paragon.h: * m/pfa50.h: * m/plexus.h: * m/pyramid.h: * m/pyrmips.h: * m/sh3el.h: * m/sps7.h: * m/sr2k.h: * m/stride.h: * m/sun1.h: * m/sun2.h: * m/sun3-68881.h: * m/sun3-fpa.h: * m/sun3-soft.h: * m/sun3.h: * m/sun386.h: * m/symmetry.h: * m/tad68k.h: * m/tahoe.h: * m/targon31.h: * m/tek4300.h: * m/tekxd88.h: * m/tower32.h: * m/tower32v3.h: * m/ustation.h: * m/wicat.h: * m/xps100.h: * s/cxux.h: * s/cxux7.h: * s/dgux.h: * s/dgux4.h: * s/dgux5-4-3.h: * s/dgux5-4r2.h: * s/esix.h: * s/esix5r4.h: * s/hiuxmpp.h: * s/hiuxwe2.h: * s/iris3-5.h: * s/iris3-6.h: * s/isc2-2.h: * s/isc3-0.h: * s/isc4-0.h: * s/isc4-1.h: * s/newsos5.h: * s/newsos6.h: * s/osf1.h: * s/osf5-0.h: * s/riscix1-1.h: * s/riscix12.h: * s/sco4.h: * s/sco5.h: * s/sunos4-0.h: * s/sunos4-1.h: * s/sunos413.h: * s/sunos4shr.h: * s/umax.h: * s/unipl5-2.h: * s/xenix.h: * cxux-crt0.s: * unexapollo.c: * unexconvex.c: * unexenix.c: * unexsni.c: Remove files for systems no longer supported. * m/intel386.h: Remove references to unsupported systems. * w32.c (get_emacs_configuration): Remove reference to i860. * sysdep.c: Remove dead code.
author Dan Nicolaescu <dann@ics.uci.edu>
date Sun, 06 Jan 2008 00:56:56 +0000
parents 025d69230a9b
children 107ccd98fa12
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
50897
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
1 ;;; utf-7.el --- utf-7 coding system
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
2
75347
e3694f1cb928 Add 2007 to copyright years.
Glenn Morris <rgm@gnu.org>
parents: 74544
diff changeset
3 ;; Copyright (C) 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
50897
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
4
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
5 ;; Author: Dave Love <fx@gnu.org>
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
6 ;; Keywords: i18n, mail
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
7
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
8 ;; This file is free software; you can redistribute it and/or modify
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
9 ;; it under the terms of the GNU General Public License as published by
78274
451a2d341d55 Switch license to GPLv3 or later.
Glenn Morris <rgm@gnu.org>
parents: 75347
diff changeset
10 ;; the Free Software Foundation; either version 3, or (at your option)
50897
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
11 ;; any later version.
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
12
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
13 ;; This file is distributed in the hope that it will be useful,
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
14 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
15 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
16 ;; GNU General Public License for more details.
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
17
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
18 ;; You should have received a copy of the GNU General Public License
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
19 ;; along with GNU Emacs; see the file COPYING. If not, write to
64085
18a818a2ee7c Update FSF's address.
Lute Kamstra <lute@gnu.org>
parents: 52401
diff changeset
20 ;; the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18a818a2ee7c Update FSF's address.
Lute Kamstra <lute@gnu.org>
parents: 52401
diff changeset
21 ;; Boston, MA 02110-1301, USA.
50897
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
22
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
23 ;;; Commentary:
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
24
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
25 ;; Defines a coding system for UTF-7, defined in RFC 2152. Non-ASCII
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
26 ;; segments are encoded as base64-encoded big endian UTF-16. Also
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
27 ;; defines a variation required for IMAP (RFC 2060).
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
28
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
29 ;; The encoding and decoding was originally taken from Jon K Hellan's
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
30 ;; implementation in Gnus, but has been substantially re-done.
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
31
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
32 ;; This probably needs more attention. In particular, it's not
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
33 ;; completely consistent with iconv's behaviour. It's arguable
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
34 ;; whether the IMAP version should be a coding system since it's
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
35 ;; apparently only used for IMAP mailbox names, so it's commented out.
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
36
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
37 ;;; Code:
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
38
66391
7d9558ca0c3b (utf-7): Add autoload cookie.
Kenichi Handa <handa@m17n.org>
parents: 64085
diff changeset
39 ;;;###autoload(autoload-coding-system 'utf-7 '(require 'utf-7))
50897
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
40 (make-coding-system
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
41 'utf-7 0 ?U
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
42 "UTF-7 encoding of Unicode (RFC 2152)"
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
43 nil
51630
90215b7be64d Adjusted for the name change: xxx-utf-16-{le,be} -> xxx-utf-16{le,be}.
Kenichi Handa <handa@m17n.org>
parents: 50897
diff changeset
44 `((safe-chars . ,(coding-system-get 'utf-16be 'safe-chars))
50897
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
45 (mime-charset . utf-7)
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
46 (pre-write-conversion . utf-7-pre-write-conversion)
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
47 (post-read-conversion . utf-7-post-read-conversion)))
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
48
85926
025d69230a9b (utf-7-imap): New coding system.
Kenichi Handa <handa@m17n.org>
parents: 78274
diff changeset
49 ;;;###autoload(autoload-coding-system 'utf-7-imap '(require 'utf-7))
025d69230a9b (utf-7-imap): New coding system.
Kenichi Handa <handa@m17n.org>
parents: 78274
diff changeset
50 (make-coding-system
025d69230a9b (utf-7-imap): New coding system.
Kenichi Handa <handa@m17n.org>
parents: 78274
diff changeset
51 'utf-7-imap 0 ?u
025d69230a9b (utf-7-imap): New coding system.
Kenichi Handa <handa@m17n.org>
parents: 78274
diff changeset
52 "UTF-7 encoding of Unicode, IMAP version (RFC 2060)"
025d69230a9b (utf-7-imap): New coding system.
Kenichi Handa <handa@m17n.org>
parents: 78274
diff changeset
53 nil
025d69230a9b (utf-7-imap): New coding system.
Kenichi Handa <handa@m17n.org>
parents: 78274
diff changeset
54 `((safe-chars . ,(coding-system-get 'utf-16be 'safe-chars))
025d69230a9b (utf-7-imap): New coding system.
Kenichi Handa <handa@m17n.org>
parents: 78274
diff changeset
55 (pre-write-conversion . utf-7-imap-pre-write-conversion)
025d69230a9b (utf-7-imap): New coding system.
Kenichi Handa <handa@m17n.org>
parents: 78274
diff changeset
56 (post-read-conversion . utf-7-imap-post-read-conversion)))
50897
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
57
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
58 (defun utf-7-decode (len imap)
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
59 "Decode LEN bytes of UTF-7 at point.
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
60 IMAP non-nil means use the IMAP version."
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
61 (save-excursion
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
62 (save-restriction
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
63 (narrow-to-region (point) (+ (point) len))
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
64 (let ((not-esc (if imap "^&" "^+"))
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
65 (skip-chars (if imap "A-Za-z0-9+," "A-Za-z0-9+/")))
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
66 (while (not (eobp))
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
67 (skip-chars-forward not-esc)
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
68 (unless (eobp)
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
69 (forward-char)
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
70 (let ((p (point))
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
71 (run-length (skip-chars-forward skip-chars)))
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
72 (if (eq ?- (char-after))
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
73 (delete-char 1))
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
74 (unless (= run-length 0) ; encoded lone esc-char
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
75 (let ((pl (mod (- run-length) 4)))
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
76 (insert-char ?= pl)
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
77 (if imap
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
78 (subst-char-in-region p (point) ?, ?/))
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
79 (base64-decode-region p (point)))
51630
90215b7be64d Adjusted for the name change: xxx-utf-16-{le,be} -> xxx-utf-16{le,be}.
Kenichi Handa <handa@m17n.org>
parents: 50897
diff changeset
80 (decode-coding-region p (point) 'utf-16be)
50897
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
81 (save-excursion
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
82 (goto-char p)
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
83 (delete-backward-char 1)))))))
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
84 (- (point-max) (point-min)))))
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
85
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
86 (defun utf-7-post-read-conversion (len)
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
87 (utf-7-decode len nil))
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
88
85926
025d69230a9b (utf-7-imap): New coding system.
Kenichi Handa <handa@m17n.org>
parents: 78274
diff changeset
89 (defun utf-7-imap-post-read-conversion (len)
025d69230a9b (utf-7-imap): New coding system.
Kenichi Handa <handa@m17n.org>
parents: 78274
diff changeset
90 (utf-7-decode len t))
50897
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
91
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
92 (defun utf-7-encode (from to imap)
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
93 "Encode bytes between FROM and TO to UTF-7.
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
94 ESC and SKIP-CHARS are adjusted for the normal and IMAP versions."
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
95 (let* ((old-buf (current-buffer))
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
96 (esc (if imap ?& ?+))
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
97 ;; These are characters which can be encoded asis.
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
98 (skip-chars (if imap
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
99 "\t\n\r\x20-\x25\x27-\x7e" ; rfc2060
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
100 ;; This includes the rfc2152 optional set.
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
101 ;; Perhaps it shouldn't (like iconv).
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
102 "\t\n\r -*,-[]-}"))
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
103 (not-skip-chars (format "^%s%c" skip-chars esc)))
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
104 (set-buffer (generate-new-buffer " *temp*"))
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
105 (if (stringp from)
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
106 (insert from)
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
107 (insert-buffer-substring old-buf from to))
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
108 (goto-char (point-min))
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
109 (while (not (eobp))
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
110 (skip-chars-forward skip-chars)
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
111 (if (eq ?+ (char-after))
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
112 (progn (forward-char)
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
113 (insert ?-))
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
114 (unless (eobp)
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
115 (insert esc)
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
116 (let ((p (point)))
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
117 (skip-chars-forward not-skip-chars)
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
118 (save-restriction
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
119 ;; encode-coding-region doesn't preserve point
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
120 (narrow-to-region p (point))
51630
90215b7be64d Adjusted for the name change: xxx-utf-16-{le,be} -> xxx-utf-16{le,be}.
Kenichi Handa <handa@m17n.org>
parents: 50897
diff changeset
121 (encode-coding-region p (point-max) 'utf-16be)
50897
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
122 (base64-encode-region p (point-max))
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
123 (if imap
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
124 (subst-char-in-region p (point-max) ?/ ?,))
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
125 (goto-char p)
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
126 ;; As I read the RFC, this isn't correct, but it's
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
127 ;; consistent with iconv, at least regarding `='.
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
128 (skip-chars-forward "^= \t\n")
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
129 (delete-region (point) (point-max))))
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
130 (unless (eobp)
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
131 (insert ?-)))))
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
132 nil))
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
133
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
134 (defun utf-7-pre-write-conversion (from to)
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
135 (utf-7-encode from to nil))
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
136
85926
025d69230a9b (utf-7-imap): New coding system.
Kenichi Handa <handa@m17n.org>
parents: 78274
diff changeset
137 (defun utf-7-imap-pre-write-conversion (from to)
025d69230a9b (utf-7-imap): New coding system.
Kenichi Handa <handa@m17n.org>
parents: 78274
diff changeset
138 (utf-7-encode from to t))
50897
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
139
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
140 (provide 'utf-7)
52401
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 51630
diff changeset
141
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 51630
diff changeset
142 ;;; arch-tag: 975ee403-90a4-4286-97d2-4ed1323f4ef9
50897
289523dd4fa7 *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
143 ;;; utf-7.el ends here