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

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

cp437


From: Alex Schroeder
Subject: cp437
Date: 27 Feb 2003 16:41:27 +0100

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 address@hidden 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:
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <drag-mouse-1> C-x b <return> <return> 
<return> <up> C-y C-x b <return> <down-mouse-1> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <drag-mouse-1> <down-mouse-1> <mouse-1> 
C-x b <return> <up> C-y C-x C-s C-g <down-mouse-1> 
<mouse-movement> <drag-mouse-1> <up> <down> <down> 
<down> <down> C-x C-f C-g C-c s c d <return> l s <return> 
t e s t . b a t <return> <help-echo> <down-mouse-1> 
<mouse-1> <help-echo> <help-echo> <help-echo> <down-mouse-1> 
<mouse-movement> <mouse-1> C-x C-b <down> <down> <down> 
C-x m C-g <f12> <escape> x r e p o r t - e m a c s 
- b u g <return>

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ún Jörð" however, this is decoded
as "Hún JörÐ".  Perhaps there is a tiny bug in cp437?

Alex.





reply via email to

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