diff options
| author | Jason Rumney | 2004-05-09 14:57:44 +0000 |
|---|---|---|
| committer | Jason Rumney | 2004-05-09 14:57:44 +0000 |
| commit | 893b49bbdfa30f1eff5c4e50b85b074a5ba9cb7b (patch) | |
| tree | af8e6b8252e02adebb8e77b7c0bd96e088a03b2e /lisp | |
| parent | 35d95cf6c10eb019a27197ee3f1b133c91c1855d (diff) | |
| download | emacs-893b49bbdfa30f1eff5c4e50b85b074a5ba9cb7b.tar.gz emacs-893b49bbdfa30f1eff5c4e50b85b074a5ba9cb7b.zip | |
(set-locale-environment): On MS-Windows use ansi code-page for default
coding-systems. Set up paper sizes for Windows 3 letter languages.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 9 | ||||
| -rw-r--r-- | lisp/international/mule-cmds.el | 16 |
2 files changed, 24 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a64fdff7df0..b782263ffd4 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2004-05-09 Jason Rumney <jasonr@gnu.org> | ||
| 2 | |||
| 3 | * international/mule-cmds.el (set-locale-environment): On | ||
| 4 | MS-Windows use ansi code-page for default coding-systems. | ||
| 5 | Set up paper sizes for Windows 3 letter languages. | ||
| 6 | |||
| 7 | * international/code-pages.el (cp932, cp936, cp949, cp950): Add | ||
| 8 | aliases. Also add cp125* if not already defined. | ||
| 9 | |||
| 1 | 2004-05-09 Juanma Barranquero <lektu@terra.es> | 10 | 2004-05-09 Juanma Barranquero <lektu@terra.es> |
| 2 | 11 | ||
| 3 | * net/quickurl.el (quickurl, quickurl-browse-url, quickurl-read): | 12 | * net/quickurl.el (quickurl, quickurl-browse-url, quickurl-read): |
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el index 0b7aa54a288..b8c071b8585 100644 --- a/lisp/international/mule-cmds.el +++ b/lisp/international/mule-cmds.el | |||
| @@ -2413,6 +2413,16 @@ See also `locale-charset-language-names', `locale-language-names', | |||
| 2413 | (prefer-coding-system coding-system) | 2413 | (prefer-coding-system coding-system) |
| 2414 | (setq locale-coding-system coding-system)))) | 2414 | (setq locale-coding-system coding-system)))) |
| 2415 | 2415 | ||
| 2416 | ;; On Windows, override locale-coding-system, keyboard-coding-system, | ||
| 2417 | ;; selection-coding-system with system codepage. | ||
| 2418 | (when (boundp w32-ansi-code-page) | ||
| 2419 | (let ((code-page-coding (intern (format "cp%d" w32-ansi-code-page)))) | ||
| 2420 | (when (coding-system-p code-page-coding) | ||
| 2421 | (setq locale-coding-system code-page-coding) | ||
| 2422 | (set-selection-coding-system code-page-coding) | ||
| 2423 | (set-keyboard-coding-system code-page-coding) | ||
| 2424 | (set-terminal-coding-system code-page-coding)))) | ||
| 2425 | |||
| 2416 | ;; Default to A4 paper if we're not in a C, POSIX or US locale. | 2426 | ;; Default to A4 paper if we're not in a C, POSIX or US locale. |
| 2417 | ;; (See comments in Flocale_info.) | 2427 | ;; (See comments in Flocale_info.) |
| 2418 | (let ((locale locale) | 2428 | (let ((locale locale) |
| @@ -2435,7 +2445,11 @@ See also `locale-charset-language-names', `locale-language-names', | |||
| 2435 | ("posix$" . letter) | 2445 | ("posix$" . letter) |
| 2436 | (".._us" . letter) | 2446 | (".._us" . letter) |
| 2437 | (".._pr" . letter) | 2447 | (".._pr" . letter) |
| 2438 | (".._ca" . letter))) | 2448 | (".._ca" . letter) |
| 2449 | ("enu$" . letter) ; Windows | ||
| 2450 | ("esu$" . letter) | ||
| 2451 | ("enc$" . letter) | ||
| 2452 | ("frc$" . letter))) | ||
| 2439 | 'a4)))))) | 2453 | 'a4)))))) |
| 2440 | nil) | 2454 | nil) |
| 2441 | 2455 | ||