bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cp437


From: David Kastrup
Subject: Re: cp437
Date: 27 Feb 2003 16:55:30 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

Alex Schroeder <a.schroeder@bsiag.com> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]