aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/international/mule.el23
1 files changed, 13 insertions, 10 deletions
diff --git a/lisp/international/mule.el b/lisp/international/mule.el
index 2146fd7b8cc..9fda80fe91c 100644
--- a/lisp/international/mule.el
+++ b/lisp/international/mule.el
@@ -1424,13 +1424,17 @@ The cdr of each element is the corresponding Emacs charset or coding system.")
1424(defvar non-standard-designations-alist 1424(defvar non-standard-designations-alist
1425 '(("$(0" . (big5 "big5-0" 2)) 1425 '(("$(0" . (big5 "big5-0" 2))
1426 ("$(1" . (big5 "big5-0" 2)) 1426 ("$(1" . (big5 "big5-0" 2))
1427 ("-V" . (t "iso8859-10" 1)) 1427 ;; The following are actually standard; generating extended
1428 ("-Y" . (t "iso8859-13" 1)) 1428 ;; segments for them is wrong and screws e.g. Latin-9 users.
1429 ("-_" . (t "iso8859-14" 1)) 1429 ;; 8859-{10,13,16} aren't Emacs charsets anyhow. -- fx
1430 ("-b" . (t "iso8859-15" 1)) 1430;; ("-V" . (t "iso8859-10" 1))
1431 ("-f" . (t "iso8859-16" 1))) 1431;; ("-Y" . (t "iso8859-13" 1))
1432;; ("-_" . (t "iso8859-14" 1))
1433;; ("-b" . (t "iso8859-15" 1))
1434;; ("-f" . (t "iso8859-16" 1))
1435 )
1432 "Alist of ctext control sequences that introduce character sets which 1436 "Alist of ctext control sequences that introduce character sets which
1433are not in the list of approved ICCCM encodings, and the corresponding 1437are not in the list of approved encodings, and the corresponding
1434coding system, identifier string, and number of octets per encoded 1438coding system, identifier string, and number of octets per encoded
1435character. 1439character.
1436 1440
@@ -1440,7 +1444,7 @@ set in the text encoded by compound-text. ENCODING is a coding system
1440symbol; if it is t, it means that the ctext coding system already encodes 1444symbol; if it is t, it means that the ctext coding system already encodes
1441the text correctly, and only the leading control sequence needs to be altered. 1445the text correctly, and only the leading control sequence needs to be altered.
1442If ENCODING is a coding system, we need to re-encode the text with that 1446If ENCODING is a coding system, we need to re-encode the text with that
1443coding system. CHARSET is the ICCCM name of the charset we need to put into 1447coding system. CHARSET is the name of the charset we need to put into
1444the leading control sequence. NOCTETS is the number of octets (bytes) that 1448the leading control sequence. NOCTETS is the number of octets (bytes) that
1445encode each character in this charset. NOCTETS can be 0 (meaning the number 1449encode each character in this charset. NOCTETS can be 0 (meaning the number
1446of octets per character is variable), 1, 2, 3, or 4.") 1450of octets per character is variable), 1, 2, 3, or 4.")
@@ -1473,9 +1477,8 @@ text, and convert it in the temporary buffer. Otherwise, convert in-place."
1473 (case-fold-search nil) 1477 (case-fold-search nil)
1474 pt desig encode-info encoding chset noctets textlen) 1478 pt desig encode-info encoding chset noctets textlen)
1475 (set-buffer-multibyte nil) 1479 (set-buffer-multibyte nil)
1476 ;; The regexp below finds the leading sequences for big5 and 1480 ;; The regexp below finds the leading sequences for big5.
1477 ;; iso8859-1[03-6] charsets. 1481 (while (re-search-forward "\e\\(\$([01]\\)" nil 'move)
1478 (while (re-search-forward "\e\\(\$([01]\\|-[VY_bf]\\)" nil 'move)
1479 (setq desig (match-string 1) 1482 (setq desig (match-string 1)
1480 pt (point-marker) 1483 pt (point-marker)
1481 encode-info (cdr (assoc desig non-standard-designations-alist)) 1484 encode-info (cdr (assoc desig non-standard-designations-alist))