diff options
| -rw-r--r-- | lisp/international/mule.el | 23 |
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 |
| 1433 | are not in the list of approved ICCCM encodings, and the corresponding | 1437 | are not in the list of approved encodings, and the corresponding |
| 1434 | coding system, identifier string, and number of octets per encoded | 1438 | coding system, identifier string, and number of octets per encoded |
| 1435 | character. | 1439 | character. |
| 1436 | 1440 | ||
| @@ -1440,7 +1444,7 @@ set in the text encoded by compound-text. ENCODING is a coding system | |||
| 1440 | symbol; if it is t, it means that the ctext coding system already encodes | 1444 | symbol; if it is t, it means that the ctext coding system already encodes |
| 1441 | the text correctly, and only the leading control sequence needs to be altered. | 1445 | the text correctly, and only the leading control sequence needs to be altered. |
| 1442 | If ENCODING is a coding system, we need to re-encode the text with that | 1446 | If ENCODING is a coding system, we need to re-encode the text with that |
| 1443 | coding system. CHARSET is the ICCCM name of the charset we need to put into | 1447 | coding system. CHARSET is the name of the charset we need to put into |
| 1444 | the leading control sequence. NOCTETS is the number of octets (bytes) that | 1448 | the leading control sequence. NOCTETS is the number of octets (bytes) that |
| 1445 | encode each character in this charset. NOCTETS can be 0 (meaning the number | 1449 | encode each character in this charset. NOCTETS can be 0 (meaning the number |
| 1446 | of octets per character is variable), 1, 2, 3, or 4.") | 1450 | of 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)) |