Open dvzubarev opened 2 years ago
Not sure why, but in emacs 28.0.50 this expression is evaluated to t: (multibyte-string-p (encode-coding-string (json-encode "t") 'utf-8 t)) In the previous version of Emacs the result was nil. So this is the same issue as #165 .
t
(multibyte-string-p (encode-coding-string (json-encode "t") 'utf-8 t))
nil
To fix this change line: from
(defun ycmd--encode-string (s) (encode-coding-string s 'utf-8 t))))
to
(defun ycmd--encode-string (s) (encode-coding-string s 'utf-8))))
Thank you! Quick fix.
Not sure why, but in emacs 28.0.50 this expression is evaluated to
t
:(multibyte-string-p (encode-coding-string (json-encode "t") 'utf-8 t))
In the previous version of Emacs the result wasnil
. So this is the same issue as #165 .To fix this change line: from
to