From: Kenichi Handa Date: Wed, 6 Sep 2006 06:41:40 +0000 (+0000) Subject: (Fformat_time_string): Use make_unibyte_string to make X-Git-Tag: emacs-pretest-22.0.90~742 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=04e28558df772845d83d5e870300b755b2528b57;p=emacs.git (Fformat_time_string): Use make_unibyte_string to make a Lisp string from the result of emacs_memftimeu call. --- diff --git a/src/ChangeLog b/src/ChangeLog index 5e39f084e9f..715c8109bf1 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2006-09-06 Kenichi Handa + + * editfns.c (Fformat_time_string): Use make_unibyte_string to make + a Lisp string from the result of emacs_memftimeu call. + 2006-09-06 Kim F. Storm * xdisp.c (pos_visible_p): Remove exact_mode_line_heights_p arg; diff --git a/src/editfns.c b/src/editfns.c index 2c392df564e..1b89bb3668c 100644 --- a/src/editfns.c +++ b/src/editfns.c @@ -1694,7 +1694,7 @@ For example, to produce full ISO 8601 format, use "%Y-%m-%dT%T%z". */) SBYTES (format_string), tm, ut); if ((result > 0 && result < size) || (result == 0 && buf[0] == '\0')) - return code_convert_string_norecord (make_string (buf, result), + return code_convert_string_norecord (make_unibyte_string (buf, result), Vlocale_coding_system, 0); /* If buffer was too small, make it bigger and try again. */