]> git.eshelyaron.com Git - emacs.git/commitdiff
(casify_object): Use make_multibyte_string
authorKarl Heuer <kwzh@gnu.org>
Thu, 24 Jun 1999 18:01:32 +0000 (18:01 +0000)
committerKarl Heuer <kwzh@gnu.org>
Thu, 24 Jun 1999 18:01:32 +0000 (18:01 +0000)
if we casify a multibyte string.

src/casefiddle.c

index 2b14cd17d34476cc536e23f2ba1a4bb049b2363d..c8ebd0e52bc56bbd6f674271e7d37224c5d690c4 100644 (file)
@@ -127,7 +127,8 @@ casify_object (flag, obj)
                  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;
        }