aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--emms-cache.el2
-rw-r--r--emms-info-mp3info.el11
2 files changed, 7 insertions, 6 deletions
diff --git a/emms-cache.el b/emms-cache.el
index 280de46..15ccd39 100644
--- a/emms-cache.el
+++ b/emms-cache.el
@@ -60,7 +60,7 @@ This is used to cache over emacs sessions.")
:group 'emms
:type 'file)
-(defcustom emms-cache-file-coding-system 'latin-1
+(defcustom emms-cache-file-coding-system 'utf-8
"Coding system used for saving `emms-cache-file'."
:group 'emms
:type 'coding-system)
diff --git a/emms-info-mp3info.el b/emms-info-mp3info.el
index 46d15a0..567f0fc 100644
--- a/emms-info-mp3info.el
+++ b/emms-info-mp3info.el
@@ -88,11 +88,12 @@ This is a useful element for `emms-info-functions'."
(while (looking-at "^\\([^=\n]+\\)=\\(.*\\)$")
(let ((name (intern (match-string 1)))
(value (match-string 2)))
- (unless (eq emms-info-mp3info-coding-system
- emms-cache-file-coding-system)
- (setq value (emms-iconv value
- emms-info-mp3info-coding-system
- emms-cache-file-coding-system)))
+ (and (boundp 'emms-cache-file-coding-system)
+ (not (eq emms-info-mp3info-coding-system
+ emms-cache-file-coding-system))
+ (setq value (emms-iconv value
+ emms-info-mp3info-coding-system
+ emms-cache-file-coding-system)))
(when (> (length value)
0)
(emms-track-set track