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 | |
| 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'.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/w32-fns.el | 14 | ||||
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/w32proc.c | 2 |
4 files changed, 15 insertions, 10 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, |
diff --git a/src/ChangeLog b/src/ChangeLog index 14d02758271..453c61bbbb2 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2008-12-11 Juanma Barranquero <lekktu@gmail.com> | 1 | 2008-12-11 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 2 | ||
| 3 | * w32proc.c (Fw32_get_locale_info): Decode long form of locale name. | ||
| 4 | |||
| 5 | 2008-12-11 Juanma Barranquero <lekktu@gmail.com> | ||
| 6 | |||
| 3 | * process.c (Fsystem_process_attributes, syms_of_process): | 7 | * process.c (Fsystem_process_attributes, syms_of_process): |
| 4 | Fix typo in name of Ssystem_process_attributes. | 8 | Fix typo in name of Ssystem_process_attributes. |
| 5 | Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>. | 9 | Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>. |
diff --git a/src/w32proc.c b/src/w32proc.c index 867ceb60f37..3e5dcd29325 100644 --- a/src/w32proc.c +++ b/src/w32proc.c | |||
| @@ -1983,7 +1983,7 @@ If LCID (a 16-bit number) is not a valid locale, the result is nil. */) | |||
| 1983 | LOCALE_SLANGUAGE | LOCALE_USE_CP_ACP, | 1983 | LOCALE_SLANGUAGE | LOCALE_USE_CP_ACP, |
| 1984 | full_name, sizeof (full_name)); | 1984 | full_name, sizeof (full_name)); |
| 1985 | if (got_full) | 1985 | if (got_full) |
| 1986 | return build_string (full_name); | 1986 | return DECODE_SYSTEM (build_string (full_name)); |
| 1987 | } | 1987 | } |
| 1988 | else if (NUMBERP (longform)) | 1988 | else if (NUMBERP (longform)) |
| 1989 | { | 1989 | { |