diff options
| -rw-r--r-- | lisp/language/utf-8-lang.el | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/lisp/language/utf-8-lang.el b/lisp/language/utf-8-lang.el new file mode 100644 index 00000000000..828f73f0062 --- /dev/null +++ b/lisp/language/utf-8-lang.el | |||
| @@ -0,0 +1,51 @@ | |||
| 1 | ;;; utf-8-lang.el --- generic UTF-8 language environment | ||
| 2 | |||
| 3 | ;; Copyright (C) 2001 Free Software Foundation, Inc. | ||
| 4 | |||
| 5 | ;; Author: Dave Love <fx@gnu.org> | ||
| 6 | ;; Keywords: i18n | ||
| 7 | |||
| 8 | ;; This file is free software; you can redistribute it and/or modify | ||
| 9 | ;; it under the terms of the GNU General Public License as published by | ||
| 10 | ;; the Free Software Foundation; either version 2, or (at your option) | ||
| 11 | ;; any later version. | ||
| 12 | |||
| 13 | ;; This file is distributed in the hope that it will be useful, | ||
| 14 | ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 15 | ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 16 | ;; GNU General Public License for more details. | ||
| 17 | |||
| 18 | ;; You should have received a copy of the GNU General Public License | ||
| 19 | ;; along with GNU Emacs; see the file COPYING. If not, write to | ||
| 20 | ;; the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | ||
| 21 | ;; Boston, MA 02111-1307, USA. | ||
| 22 | |||
| 23 | ;;; Commentary: | ||
| 24 | |||
| 25 | ;;; Code: | ||
| 26 | |||
| 27 | (set-language-info-alist | ||
| 28 | "UTF-8" `((coding-system mule-utf-8) | ||
| 29 | (coding-priority coding-category-utf-8) | ||
| 30 | (setup-function | ||
| 31 | . (lambda () | ||
| 32 | ;; Use Unicode font under Windows. Jason Rumney fecit. | ||
| 33 | (if (and (fboundp 'w32-add-charset-info) | ||
| 34 | (not (boundp 'w32-unicode-charset-defined))) | ||
| 35 | (w32-add-charset-info "iso10646-1" 'w32-charset-ansi t)))) | ||
| 36 | ;; Is this appropriate? | ||
| 37 | ;; (exit-function | ||
| 38 | ;; . (lambda () | ||
| 39 | ;; (if (and (fboundp 'w32-add-charset-info) | ||
| 40 | ;; (not (boundp 'w32-unicode-charset-defined))) | ||
| 41 | ;; (setq w32-charset-info-alist | ||
| 42 | ;; (delete (assoc "iso10646-1") | ||
| 43 | ;; w32-charset-info-alist))))) | ||
| 44 | (input-method . "rfc1345") ; maybe not the best choice | ||
| 45 | (documentation . "\ | ||
| 46 | This language environment is a generic one for a subset of the Unicode | ||
| 47 | character set encoded in UTF-8.")) | ||
| 48 | nil) | ||
| 49 | |||
| 50 | (provide 'utf-8-lang) | ||
| 51 | ;;; utf-8-lang.el ends here | ||