emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/spell-fu 33a28e0df5 41/86: fix: encode word to utf-8 gener


From: ELPA Syncer
Subject: [nongnu] elpa/spell-fu 33a28e0df5 41/86: fix: encode word to utf-8 generating the cache
Date: Thu, 7 Jul 2022 12:03:42 -0400 (EDT)

branch: elpa/spell-fu
commit 33a28e0df53d76f1285d0a3ca3feea3c4271b120
Author: Hanno Perrey <hanno@hoowl.se>
Commit: Campbell Barton <ideasman42@gmail.com>

    fix: encode word to utf-8 generating the cache
    
    This fixes treatment of UTF-8 characters when generating the cache for
    the first time from the list of words. It builds upon the fix introduced
    in 86d46cf6. This was tested against characters in the German and
    Swedish language.
---
 spell-fu.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/spell-fu.el b/spell-fu.el
index a5547242f6..a21d489c8f 100644
--- a/spell-fu.el
+++ b/spell-fu.el
@@ -353,7 +353,7 @@ save some time by not spending time reading it back."
       (while (not (eobp))
         (let ((l (buffer-substring-no-properties (line-beginning-position) 
(line-end-position))))
           ;; Value of 't' is just for simplicity, it's no used except for 
check the item exists.
-          (puthash (downcase l) t word-table)
+          (puthash (encode-coding-string (downcase l) 'utf-8) t word-table)
           (forward-line 1))))
 
     ;; Write write it to a file.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]