From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Preload encoded-kb on MS-Windows Date: Sat, 13 May 2006 22:44:59 -0400 Message-ID: <873bfds4xs.fsf-monnier+emacs@gnu.org> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1147574730 4094 80.91.229.2 (14 May 2006 02:45:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 14 May 2006 02:45:30 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 14 04:45:27 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Ff6bi-0001aP-Pe for ged-emacs-devel@m.gmane.org; Sun, 14 May 2006 04:45:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ff6bi-0005UW-BW for ged-emacs-devel@m.gmane.org; Sat, 13 May 2006 22:45:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ff6bV-0005UH-1n for emacs-devel@gnu.org; Sat, 13 May 2006 22:45:09 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ff6bS-0005SC-3w for emacs-devel@gnu.org; Sat, 13 May 2006 22:45:07 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ff6bR-0005S1-R5 for emacs-devel@gnu.org; Sat, 13 May 2006 22:45:05 -0400 Original-Received: from [209.226.175.34] (helo=tomts13-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Ff6dU-0002KU-NX; Sat, 13 May 2006 22:47:12 -0400 Original-Received: from alfajor ([70.55.144.14]) by tomts13-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20060514024501.JUSJ29052.tomts13-srv.bellnexxia.net@alfajor>; Sat, 13 May 2006 22:45:01 -0400 Original-Received: by alfajor (Postfix, from userid 1000) id 64C3DD7754; Sat, 13 May 2006 22:44:59 -0400 (EDT) Original-To: Eli Zaretskii In-Reply-To: (Eli Zaretskii's message of "Sat, 13 May 2006 16:39:00 +0300") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:54422 Archived-At: > ;; On Windows, override locale-coding-system, > ;; keyboard-coding-system with system codepage. Note: > ;; selection-coding-system is already set in w32select.c. > (when (boundp 'w32-ansi-code-page) > (let ((code-page-coding (intern (format "cp%d" w32-ansi-code-page)))) > (when (coding-system-p code-page-coding) > (setq locale-coding-system code-page-coding) > (set-keyboard-coding-system code-page-coding) > (set-terminal-coding-system code-page-coding)))) > This calls set-keyboard-coding-system, which in turn loads encoded-kb > to enable Encoded Keyboard minor mode. > I think this means we should preload encoded-kb on Windows. Does > anyone disagree? Actually under Unix, unless your locale is C or English, terminal-coding-system will most likely be set as well. Under Mac OS X, it's always set to utf-8. So we should probably just preload it in all cases. Stefan