all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Kastrup <dak@gnu.org>
Subject: Re: cp437
Date: 27 Feb 2003 16:55:30 +0100	[thread overview]
Message-ID: <x53cm9hg5p.fsf@lola.goethe.zz> (raw)
In-Reply-To: mailman.2531.1046360600.21513.bug-gnu-emacs@gnu.org

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	other threads:[~2003-02-27 15:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.2531.1046360600.21513.bug-gnu-emacs@gnu.org>
2003-02-27 15:55 ` David Kastrup [this message]
2003-02-27 15:41 cp437 Alex Schroeder

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=x53cm9hg5p.fsf@lola.goethe.zz \
    --to=dak@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.