When startup on Windows-XP, the default-buffer-file-coding-system is set to chinese-gbk-unix, it should be chinese-gbk-dos by default on windows.
Startup with "emacs -Q" and "C-h C" in the *scratch* buffer gives: --8<---------------cut here---------------start------------->8--- Coding system for saving this buffer: Not set locally, use the default. Default coding system (for new files): c -- chinese-gbk-unix (alias: gbk-unix cp936-unix windows-936-unix) Coding system for keyboard input: c -- cp936 (alias of chinese-gbk) Coding system for terminal output: c -- cp936 (alias of chinese-gbk) Coding system for inter-client cut and paste: U -- utf-16le-dos Defaults for subprocess I/O: decoding: - -- undecided-dos (alias: dos) encoding: - -- undecided-unix (alias: unix) Priority order for recognizing coding systems when reading files: 1. chinese-gbk (alias: gbk cp936 windows-936) 2. iso-2022-cn (alias: chinese-iso-7bit) 3. chinese-iso-8bit (alias: cn-gb-2312 euc-china euc-cn cn-gb gb2312 cp936) 4. utf-8 (alias: mule-utf-8) 5. iso-2022-7bit 6. iso-2022-8bit-ss2 7. emacs-mule 8. raw-text 9. iso-2022-jp (alias: junet) 10. in-is13194-devanagari (alias: devanagari) 11. utf-16 12. utf-16be-with-signature (alias: utf-16-be) 13. utf-16le-with-signature (alias: utf-16-le) 14. utf-16be 15. utf-16le 16. japanese-shift-jis (alias: shift_jis sjis cp932) 17. undecided Other coding systems cannot be distinguished automatically from these, and therefore cannot be recognized automatically with the present coding system priorities. Particular coding systems specified for certain file names: OPERATION TARGET PATTERN CODING SYSTEM(s) --------- -------------- ---------------- File I/O "\\.dz\\'" (no-conversion . no-conversion) "\\.g?z\\(~\\|\\.~[0-9]+~\\)?\\'" (no-conversion . no-conversion) "\\.tgz\\'" (no-conversion . no-conversion) "\\.tbz\\'" (no-conversion . no-conversion) "\\.bz2\\'" (no-conversion . no-conversion) "\\.Z\\(~\\|\\.~[0-9]+~\\)?\\'" (no-conversion . no-conversion) "\\.elc\\'" utf-8-emacs "\\.utf\\(-8\\)?\\'" utf-8 "\\.xml\\'" utf-8 "\\(\\`\\|/\\)loaddefs.el\\'" (raw-text . raw-text-unix) "\\.tar\\'" (no-conversion . no-conversion) "\\.po[tx]?\\'\\|\\.po\\." po-find-file-coding-system "\\.\\(tex\\|ltx\\|dtx\\|drv\\)\\'" latexenc-find-file-coding-system "" find-buffer-file-type-coding-system Process I/O nothing specified Network I/O nothing specified --8<---------------cut here---------------end--------------->8--- If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file c:/Emacs/etc/DEBUG for instructions. In GNU Emacs 23.0.0.1 (i386-mingw-nt5.1.2600) of 2006-12-05 on BREP X server distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.2)' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: CHS value of $XMODIFIERS: nil locale-coding-system: cp936 default-enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: auto-image-file-mode: t display-time-mode: t show-paren-mode: t delete-selection-mode: t pc-selection-mode: t encoded-kbd-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x r e p r o t <backspace> <backspace> <backspace> o r t - e m <tab> <return> Recent messages: Source file `c:/Emacs/lisp/emacs-lisp/easymenu.el' newer than byte-compiled file Loading regexp-opt (compiled; note, source file is newer)...done Loading cl-macs (compiled; note, source file is newer)...done Loading d:/emacs-download/color-theme-6.6.0/themes/color-theme-example.el (source)...done Loading d:/emacs-download/color-theme-6.6.0/themes/color-theme-library.el (source)...done Loading image-file...done Loading c:/Emacs/zw-config/zw-dot-emacs.el (source)...done For information about the GNU Project and its goals, type C-h C-p. Loading emacsbug...done byte-code: Beginning of buffer _______________________________________________ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug