projects
/
elisp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a079aa1
)
Fixed an ugly bug when there are encoding problems with the ICE media infos.
author
Francois Fleuret
<francois@fleuret.org>
Fri, 2 Dec 2016 15:36:56 +0000
(16:36 +0100)
committer
Francois Fleuret
<francois@fleuret.org>
Fri, 2 Dec 2016 15:36:56 +0000
(16:36 +0100)
media-mplayer.el
patch
|
blob
|
history
diff --git
a/media-mplayer.el
b/media-mplayer.el
index
ff1747e
..
46acbb3
100644
(file)
--- a/
media-mplayer.el
+++ b/
media-mplayer.el
@@
-94,8
+94,8
@@
load Emacs less. Nil means no timing."
(let ((s (match-string 1 param)))
(concat (if (string= s "")
"<no title>"
(let ((s (match-string 1 param)))
(concat (if (string= s "")
"<no title>"
-
;;
(encode-coding-string s 'latin-1)
- s
+ (encode-coding-string s 'latin-1)
+
;;
s
)
" | "
(format-time-string "%a %b %d %H:%M:%S")
)
" | "
(format-time-string "%a %b %d %H:%M:%S")
@@
-110,10
+110,11
@@
load Emacs less. Nil means no timing."
)
(when media/mplayer/capture-dir
)
(when media/mplayer/capture-dir
- (with-temp-buffer
- (insert
- (concat media/current-song-in-stream "\n"))
- (write-region nil nil (concat media/mplayer/capture-dir "/log") t)))
+ (let ((coding-system-for-write 'raw-text-unix))
+ (with-temp-buffer
+ (insert
+ (concat media/current-song-in-stream "\n"))
+ (write-region nil nil (concat media/mplayer/capture-dir "/log") t))))
(if (and media/current-song-in-stream media/current-information)
(media/show-current-information))
(if (and media/current-song-in-stream media/current-information)
(media/show-current-information))