Skip to content

Commit 080e10c

Browse files
committed
LN_CORE: Replace list->utf8string with backwards compatible one
1 parent 8a65b9a commit 080e10c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

modules/ln_core/utf8string.scm

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
8080
(for-each (lambda (l) (set! len (fx+ len (string-length l)))) lst)
8181
(let ((offset 0)
8282
(result (make-string len)))
83-
(for-each (lambda (l)
84-
(string-copy! result offset l)
85-
(set! offset (fx+ offset (string-length l)))
83+
(for-each (lambda (s)
84+
(for-each (lambda (c) (string-set! result offset c) (set! offset (fx+ offset 1))) (string->list s))
8685
) lst)
8786
result
8887
))

0 commit comments

Comments
 (0)