From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Alex Schroeder Newsgroups: gmane.emacs.bugs Subject: cp437 Date: 27 Feb 2003 16:41:27 +0100 Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1046360824 22387 80.91.224.249 (27 Feb 2003 15:47:04 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 27 Feb 2003 15:47:04 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18oQEd-0005l5-00 for ; Thu, 27 Feb 2003 16:46:11 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18oQCI-0004TM-05 for gnu-bug-gnu-emacs@m.gmane.org; Thu, 27 Feb 2003 10:43:46 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18oQBO-0003tR-00 for bug-gnu-emacs@gnu.org; Thu, 27 Feb 2003 10:42:50 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18oQAG-0003JG-00 for bug-gnu-emacs@gnu.org; Thu, 27 Feb 2003 10:41:41 -0500 Original-Received: from dmz1.bsiag.com ([62.2.194.68]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18oQAA-0003Fq-00 for bug-gnu-emacs@gnu.org; Thu, 27 Feb 2003 10:41:34 -0500 Original-Received: from mail.bsiag.com by [62.2.194.68] via smtpd (for mail.gnu.org [199.232.76.166]) with ESMTP; Thu, 27 Feb 2003 16:45:16 +0100 Original-Received: from BSI011.bsiag.com [100.0.0.83] by bsiag.com with ESMTP (SMTPD32-6.06) id A21F104B0222; Thu, 27 Feb 2003 16:43:27 +0100 Original-To: bug-gnu-emacs@gnu.org Original-Lines: 73 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:4522 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4522 This bug report will be sent to the Free Software Foundation, not to your local site managers! Please write in English, because the Emacs maintainers do not have translators to read other languages for them. Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list, and to the gnu.emacs.bug news group. In GNU Emacs 21.2.1 (i386-msvc-nt5.1.2600) of 2002-03-19 on buffy configured using `configure --with-msvc (12.00)' 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: DES locale-coding-system: iso-latin-1 default-enable-multibyte-characters: t Please describe exactly what actions triggered the bug and the precise symptoms of the bug: Recent input: =20 C-x b =20 C-y C-x b =20 =20 =20 =20 C-x b C-y C-x C-s C-g =20 =20 C-x C-f C-g C-c s c d l s =20 t e s t . b a t =20 =20 C-x C-b =20 C-x m C-g x r e p o r t - e m a c s=20 - b u g Recent messages: Mark set insert: Format specifier doesn't match argument type Type C-x 1 to remove help window. C-v to scroll the help. Mark set [3 times] basic-save-buffer: Quit Quit Updating buffer list...done Commands: m, u, t, RET, g, k, S, D, Q; q to quit; h for help keyboard-quit: Quit Loading emacsbug...done I am using the following defun on Microsoft Windows XP to get the title of the file Winamp is currently playing. I found by trial and error that cp437 works for me. :) (defun winamp () "Print what winamp is playing." (interactive) (let* ((coding-system-for-read 'cp437) (str (shell-command-to-string "c:/WINDOWS/system32/tasklist.exe /v"))) (when (string-match "^studio.exe.*?[0-9]+\\. \\(.*?\\)[ \t]*\\((playing= )\\)?[ \t]*$" str) (match-string 1 str)))) When playing the Icelanding piece "H=FAn J=F6r=F0" however, this is decoded as "H=FAn J=F6r=D0". Perhaps there is a tiny bug in cp437? Alex.