From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.bugs Subject: Re: cp437 Date: 27 Feb 2003 16:55:30 +0100 Organization: T-Online Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1046361723 27439 80.91.224.249 (27 Feb 2003 16:02:03 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 27 Feb 2003 16:02:03 +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 18oQS6-0006zj-00 for ; Thu, 27 Feb 2003 17:00:06 +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 18oQRv-0003F0-03 for gnu-bug-gnu-emacs@m.gmane.org; Thu, 27 Feb 2003 10:59:55 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18oQRg-00039t-00 for bug-gnu-emacs@gnu.org; Thu, 27 Feb 2003 10:59:40 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18oQRd-00038F-00 for bug-gnu-emacs@gnu.org; Thu, 27 Feb 2003 10:59:38 -0500 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18oQRc-00037A-00 for bug-gnu-emacs@gnu.org; Thu, 27 Feb 2003 10:59:36 -0500 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.10) id 18oQRc-0008CG-01 for gnu-emacs-bug@prep.ai.mit.edu; Thu, 27 Feb 2003 10:59:36 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18oQRa-00035M-00 for gnu-emacs-bug@prep.ai.mit.edu; Thu, 27 Feb 2003 10:59:35 -0500 Original-Received: from mailout07.sul.t-online.com ([194.25.134.83]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18oQNh-00024a-00 for gnu-emacs-bug@prep.ai.mit.edu; Thu, 27 Feb 2003 10:55:33 -0500 Original-Received: from imh00.t-online.com by mailout07.sul.t-online.com with esmtp id 18oQNf-0002C1-00; Thu, 27 Feb 2003 16:55:31 +0100 Original-Received: from news.t-online.com by imh00.t-online.com with esmtp id 18oQNf-0000xm-00; Thu, 27 Feb 2003 16:55:31 +0100 Original-Received: from news by news.t-online.com with local id 18oQNf-00052v-00; Thu, 27 Feb 2003 16:55:31 +0100 Original-To: gnu-emacs-bug@prep.ai.mit.edu Original-Path: news.t-online.com!not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 22 Original-X-Trace: news.t-online.com 1046361331 06 17622 mnOPE-CETrAXl 030227 15:55:31 Original-X-Complaints-To: abuse@t-online.com X-Sender: 520018396234-0001@t-dialin.net X-Face: 2FEFf>]>q>2iw=B6,xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN;i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 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:4523 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4523 Alex Schroeder writes: > 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ún Jörð" however, this is decoded > as "Hún JörÐ". Perhaps there is a tiny bug in cp437? THe code page 437 does not contain either ð or Ð AFAICS. So whatever happens here seems to be somthing quite different. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum