[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
27 Feb 2003 16:55:30 +0100
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50
Alex Schroeder <address@hidden> 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."
> (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
- cp437, Alex Schroeder, 2003/02/27
- Re: cp437,
David Kastrup <=