aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2001-04-06 19:04:14 +0000
committerEli Zaretskii2001-04-06 19:04:14 +0000
commitf3d78a1ca2733a08b31e36bf61c8c6686306ad25 (patch)
treec97e151b0337e108e4ef5131170f9de25d93fa59
parenta9d36252047b2f04c6cf1486a2fa6048443feb0f (diff)
downloademacs-f3d78a1ca2733a08b31e36bf61c8c6686306ad25.tar.gz
emacs-f3d78a1ca2733a08b31e36bf61c8c6686306ad25.zip
(miscdic-convert): For MS-DOS, if
long file names aren't supported, truncate the file names in quail-misc-package-ext-info to 8+3 before matching them against FILENAME.
-rw-r--r--lisp/international/titdic-cnv.el10
1 files changed, 9 insertions, 1 deletions
diff --git a/lisp/international/titdic-cnv.el b/lisp/international/titdic-cnv.el
index 6894eb6dc41..98e68448646 100644
--- a/lisp/international/titdic-cnv.el
+++ b/lisp/international/titdic-cnv.el
@@ -976,7 +976,15 @@ the generated Quail package is saved."
976 name title dicfile coding quailfile converter copyright 976 name title dicfile coding quailfile converter copyright
977 dicbuf) 977 dicbuf)
978 (while tail 978 (while tail
979 (when (string-match (nth 2 (car tail)) filename) 979 (when (or (string-match (nth 2 (car tail)) filename)
980 ;; MS-DOS filesystem truncates file names to 8+3
981 ;; limits, so "cangjie-table.cns" becomes
982 ;; "cangjie-.cns", and the above string-match fails.
983 ;; Give DOS users a chance...
984 (and (fboundp 'msdos-long-file-names)
985 (not (msdos-long-file-names))
986 (string-match (dos-truncate-to-8+3 (nth 2 (car tail)))
987 filename)))
980 (setq slot (car tail) 988 (setq slot (car tail)
981 name (car slot) 989 name (car slot)
982 title (nth 1 slot) 990 title (nth 1 slot)