changeset 103005:e99216139fa1

(Ftranslate_region_internal): Use Fconcat to make a string from a vector to handle Latin-1 characters correctly.
author Kenichi Handa <handa@m17n.org>
date Fri, 17 Apr 2009 02:14:50 +0000
parents bf09f8fb0226
children 596eed42a2dd
files src/editfns.c
diffstat 1 files changed, 1 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/editfns.c	Fri Apr 17 00:56:39 2009 +0000
+++ b/src/editfns.c	Fri Apr 17 02:14:50 2009 +0000
@@ -3147,12 +3147,7 @@
 
 	      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
 		{