From 04e28558df772845d83d5e870300b755b2528b57 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Wed, 6 Sep 2006 06:41:40 +0000 Subject: [PATCH] (Fformat_time_string): Use make_unibyte_string to make a Lisp string from the result of emacs_memftimeu call. --- src/ChangeLog | 5 +++++ src/editfns.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 5e39f084e9..715c8109bf 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 2c392df564..1b89bb3668 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. */ -- 2.20.1