From bde257485d124123a1e1c344990fccf765abc898 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Fri, 17 Apr 2009 02:15:17 +0000 Subject: [PATCH] (Ftranslate_region_internal): Use Fconcat to make a string from a vector to handle Latin-1 characters correctly. --- src/ChangeLog | 3 +++ src/editfns.c | 7 +------ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 1a26bae8db2..8501f230fe5 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2009-04-17 Kenichi Handa + * editfns.c (Ftranslate_region_internal): Use Fconcat to make a + string from a vector to handle Latin-1 characters correctly. + * ftfont.c (ftfont_pattern_entity): Return a newly allocated entity even if the cache hits. diff --git a/src/editfns.c b/src/editfns.c index 9d6ff9be655..d573eef5afc 100644 --- a/src/editfns.c +++ b/src/editfns.c @@ -3147,12 +3147,7 @@ It returns the number of characters changed. */) if (VECTORP (val)) { - int i; - - string = Fmake_string (make_number (ASIZE (val)), - AREF (val, 0)); - for (i = 1; i < ASIZE (val); i++) - Faset (string, make_number (i), AREF (val, i)); + string = Fconcat (1, &val); } else { -- 2.39.2