From: Kenichi Handa Date: Fri, 1 Mar 2002 01:37:55 +0000 (+0000) Subject: Include "character.h" instead of "charset.h". X-Git-Tag: emacs-pretest-23.0.90~8295^2~1864^2~1009 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=40fbd2544a7ef141999e7915f42c0582a277c14e;p=emacs.git Include "character.h" instead of "charset.h". (Fchar_to_string): Always call CHAR_STRING. --- diff --git a/src/editfns.c b/src/editfns.c index dabd920e947..2c4bae4808a 100644 --- a/src/editfns.c +++ b/src/editfns.c @@ -38,7 +38,7 @@ Boston, MA 02111-1307, USA. */ #include "lisp.h" #include "intervals.h" #include "buffer.h" -#include "charset.h" +#include "character.h" #include "coding.h" #include "frame.h" #include "window.h" @@ -175,9 +175,7 @@ usage: (char-to-string CHAR) */) CHECK_NUMBER (character); - len = (SINGLE_BYTE_CHAR_P (XFASTINT (character)) - ? (*str = (unsigned char)(XFASTINT (character)), 1) - : char_to_string (XFASTINT (character), str)); + len = CHAR_STRING (XFASTINT (character), str); return make_string_from_bytes (str, 1, len); }