From 78d53caaea3f675a4a9df1a87aa9238232d503b1 Mon Sep 17 00:00:00 2001 From: drcxd Date: Thu, 25 Jun 2026 14:49:48 +0800 Subject: [PATCH] Read releases json string with explicit utf-8 encoding This avoids encoding problem caused by json-parse-buffer when current-language-environment is not UTF-8. --- eca-process.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eca-process.el b/eca-process.el index 077c918..5701bdf 100644 --- a/eca-process.el +++ b/eca-process.el @@ -223,7 +223,8 @@ cached value is preserved and returned." (if (eca-process--releases-cache-valid-p) (cdr eca-process--releases-cache) (condition-case err - (let* ((json-string + (let* ((coding-system-for-read 'utf-8) + (json-string (eca--curl-download-string eca-process--releases-url)) (releases (with-temp-buffer