diff src/editfns.c @ 4834:b3ea9c582280

Use new cygwin_conv_path API with Cygwin 1.7 for converting names between Win32 and POSIX, UTF-8-aware, with attendant changes elsewhere
author Ben Wing <ben@xemacs.org>
date Tue, 12 Jan 2010 01:38:04 -0600
parents d261888e5069
children 755ae5b97edb 6ef8256a020a 19a72041c5ed
line wrap: on
line diff
--- a/src/editfns.c	Sun Jan 10 01:06:15 2010 -0600
+++ b/src/editfns.c	Tue Jan 12 01:38:04 2010 -0600
@@ -1074,10 +1074,11 @@
 
       /* !!#### this use of external here is not totally safe, and
 	 potentially data lossy. */
-      LISP_STRING_TO_EXTERNAL (format_string, formext, Qnative);
+      LISP_STRING_TO_EXTERNAL (format_string, formext,
+			       Qtime_function_encoding);
       if (emacs_strftime (buf, size, formext, &tm)
 	  || !*buf)
-	return build_ext_string (buf, Qnative);
+	return build_ext_string (buf, Qtime_function_encoding);
       /* If buffer was too small, make it bigger.  */
       size *= 2;
     }
@@ -1187,7 +1188,7 @@
       Extbyte **oldenv = environ, **newenv;
 
       if (STRINGP (zone))
-	LISP_STRING_TO_EXTERNAL (zone, tzstring, Qnative);
+	LISP_STRING_TO_EXTERNAL (zone, tzstring, Qtime_zone_encoding);
       else if (INTP (zone))
 	{
 	  int abszone = abs (XINT (zone));
@@ -1319,7 +1320,7 @@
 #endif
 #endif /* not HAVE_TM_ZONE */
       if (s)
-	tem = build_ext_string (s, Qnative);
+	tem = build_ext_string (s, Qtime_zone_encoding);
       else
 	{
 	  Ibyte buf[6];
@@ -1433,7 +1434,7 @@
   else
     {
       CHECK_STRING (tz);
-      LISP_STRING_TO_EXTERNAL (tz, tzstring, Qnative);
+      LISP_STRING_TO_EXTERNAL (tz, tzstring, Qtime_zone_encoding);
     }
 
   set_time_zone_rule (tzstring);