]> git.eshelyaron.com Git - emacs.git/commitdiff
* Fix native comp for non trivial function names (bug#52833)
authorAndrea Corallo <akrl@sdf.org>
Tue, 28 Dec 2021 11:12:16 +0000 (12:12 +0100)
committerAndrea Corallo <akrl@sdf.org>
Tue, 28 Dec 2021 14:59:32 +0000 (15:59 +0100)
* lisp/emacs-lisp/comp.el (comp-c-func-name): Fix native compilation
for functions with function names containing non trivial
characters (bug#52833).

lisp/emacs-lisp/comp.el

index b51224088f1afefa5b5da382a4ffeef76c8c9a27..ea52aba5d32f45820904fe29fce2cea1cd402766 100644 (file)
@@ -1181,7 +1181,9 @@ clashes."
                           for i across orig-name
                           for byte = (format "%x" i)
                           do (aset str j (aref byte 0))
-                             (aset str (1+ j) (aref byte 1))
+                             (aset str (1+ j) (if (length> byte 1)
+                                                  (aref byte 1)
+                                                ?\_))
                           finally return str))
          (human-readable (string-replace
                           "-" "_" orig-name))