changeset 24883:59b74d3add13

(casify_object): Use make_multibyte_string if we casify a multibyte string.
author Karl Heuer <kwzh@gnu.org>
date Thu, 24 Jun 1999 18:01:32 +0000
parents 3a17c21ea615
children 1e6ee49f9474
files src/casefiddle.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/casefiddle.c	Thu Jun 24 17:54:20 1999 +0000
+++ b/src/casefiddle.c	Thu Jun 24 18:01:32 1999 +0000
@@ -127,7 +127,8 @@
 		  if ((int) flag >= (int) CASE_CAPITALIZE)
 		    inword = SYNTAX (c) == Sword;
 		}
-	      obj = make_string (buf, j_byte);
+	      obj = make_multibyte_string (buf, XSTRING (obj)->size,
+					   j_byte);
 	    }
 	  return obj;
 	}