all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* cp437
@ 2003-02-27 15:41 Alex Schroeder
  0 siblings, 0 replies; 2+ messages in thread
From: Alex Schroeder @ 2003-02-27 15:41 UTC (permalink / raw)


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 bug-gnu-emacs@gnu.org 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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: cp437
       [not found] <mailman.2531.1046360600.21513.bug-gnu-emacs@gnu.org>
@ 2003-02-27 15:55 ` David Kastrup
  0 siblings, 0 replies; 2+ messages in thread
From: David Kastrup @ 2003-02-27 15:55 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-02-27 15:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.2531.1046360600.21513.bug-gnu-emacs@gnu.org>
2003-02-27 15:55 ` cp437 David Kastrup
2003-02-27 15:41 cp437 Alex Schroeder

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.