diff options
| author | Juanma Barranquero | 2008-12-11 09:40:44 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2008-12-11 09:40:44 +0000 |
| commit | 011a014396e59cb621470309ff7865e3972a2953 (patch) | |
| tree | a4acccbc9bc527cde287fec6f24123f8c563f1cb /lisp | |
| parent | 3c309f345ba1eeee920fa00295873c1ce36567a9 (diff) | |
| download | emacs-011a014396e59cb621470309ff7865e3972a2953.tar.gz emacs-011a014396e59cb621470309ff7865e3972a2953.zip | |
Move decoding of locale info from Lisp to C.
* src/w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
* lisp/w32-fns.el (w32-list-locales): Revert part of 2008-10-17 change;
decoding of long locale info is now done in `w32-get-locale-info'.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/w32-fns.el | 14 |
2 files changed, 10 insertions, 9 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 4e6b3c34ed9..5b2074c7743 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2008-12-11 Juanma Barranquero <lekktu@gmail.com> | ||
| 2 | |||
| 3 | * w32-fns.el (w32-list-locales): Revert part of 2008-10-17 change; | ||
| 4 | decoding of long locale info is now done in `w32-get-locale-info'. | ||
| 5 | |||
| 1 | 2008-12-11 Chong Yidong <cyd@stupidchicken.com> | 6 | 2008-12-11 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 7 | ||
| 3 | * progmodes/ruby-mode.el: Fix auto-mode-alist entry. | 8 | * progmodes/ruby-mode.el: Fix auto-mode-alist entry. |
diff --git a/lisp/w32-fns.el b/lisp/w32-fns.el index 5228e4f8fdf..c7284fafd36 100644 --- a/lisp/w32-fns.el +++ b/lisp/w32-fns.el | |||
| @@ -221,15 +221,11 @@ You should set this to t when using a non-system shell.\n\n")))) | |||
| 221 | (setq w32-valid-locales (sort (w32-get-valid-locale-ids) #'<))) | 221 | (setq w32-valid-locales (sort (w32-get-valid-locale-ids) #'<))) |
| 222 | (with-output-to-temp-buffer "*Supported Locales*" | 222 | (with-output-to-temp-buffer "*Supported Locales*" |
| 223 | (princ "LCID\tAbbrev\tFull name\n\n") | 223 | (princ "LCID\tAbbrev\tFull name\n\n") |
| 224 | (princ (decode-coding-string (mapconcat | 224 | (dolist (locale w32-valid-locales) |
| 225 | (lambda (x) | 225 | (princ (format "%d\t%s\t%s\n" |
| 226 | (format "%d\t%s\t%s" | 226 | locale |
| 227 | x | 227 | (w32-get-locale-info locale) |
| 228 | (w32-get-locale-info x) | 228 | (w32-get-locale-info locale t)))))) |
| 229 | (w32-get-locale-info x t))) | ||
| 230 | w32-valid-locales "\n") | ||
| 231 | locale-coding-system)) | ||
| 232 | (princ "\n"))) | ||
| 233 | 229 | ||
| 234 | ;;; Setup Info-default-directory-list to include the info directory | 230 | ;;; Setup Info-default-directory-list to include the info directory |
| 235 | ;;; near where Emacs executable was installed. We used to set INFOPATH, | 231 | ;;; near where Emacs executable was installed. We used to set INFOPATH, |