comparison src/editfns.c @ 72669:d8f99fba05ca

(Fformat_time_string): Use make_unibyte_string to make a Lisp string from the result of emacs_memftimeu call.
author Kenichi Handa <handa@m17n.org>
date Wed, 06 Sep 2006 06:40:52 +0000
parents f6de516bbb4b
children 9128a4531448 84dd84b43e1b
comparison
equal deleted inserted replaced
72668:5a0fb2945b46 72669:d8f99fba05ca
1692 buf[0] = '\1'; 1692 buf[0] = '\1';
1693 result = emacs_memftimeu (buf, size, SDATA (format_string), 1693 result = emacs_memftimeu (buf, size, SDATA (format_string),
1694 SBYTES (format_string), 1694 SBYTES (format_string),
1695 tm, ut); 1695 tm, ut);
1696 if ((result > 0 && result < size) || (result == 0 && buf[0] == '\0')) 1696 if ((result > 0 && result < size) || (result == 0 && buf[0] == '\0'))
1697 return code_convert_string_norecord (make_string (buf, result), 1697 return code_convert_string_norecord (make_unibyte_string (buf, result),
1698 Vlocale_coding_system, 0); 1698 Vlocale_coding_system, 0);
1699 1699
1700 /* If buffer was too small, make it bigger and try again. */ 1700 /* If buffer was too small, make it bigger and try again. */
1701 result = emacs_memftimeu (NULL, (size_t) -1, 1701 result = emacs_memftimeu (NULL, (size_t) -1,
1702 SDATA (format_string), 1702 SDATA (format_string),