diff src/sysdll.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 5989b9bbb612
children 19a72041c5ed
line wrap: on
line diff
--- a/src/sysdll.c	Sun Jan 10 01:06:15 2010 -0600
+++ b/src/sysdll.c	Tue Jan 12 01:38:04 2010 -0600
@@ -109,7 +109,7 @@
 #else
   msg = (const Extbyte *) "Shared library error";
 #endif
-  return build_ext_string (msg, Qnative);
+  return build_ext_string (msg, Qerror_message_encoding);
 }
 
 #elif defined(HAVE_SHL_LOAD)
@@ -164,7 +164,8 @@
 {
   /* #### WTF?!  Shouldn't this at least attempt to get strerror or
      something?  --hniksic */
-  return build_string ("Generic shared library error", Qnative);
+  return build_string ("Generic shared library error",
+		       Qerror_message_encoding);
 }
 
 #elif defined (WIN32_NATIVE) || defined (CYGWIN)
@@ -183,7 +184,7 @@
     }
   else
     {
-      LOCAL_FILE_FORMAT_TO_TSTR (fname, soname);
+      LISP_LOCAL_FILE_FORMAT_TO_TSTR (fname, soname);
     }
   return (dll_handle) qxeLoadLibrary (soname);
 }
@@ -431,7 +432,7 @@
   int errorNumber;
   const CIbyte *fileNameWithError, *errorString;
   NSLinkEditError(&c, &errorNumber, &fileNameWithError, &errorString);
-  return build_ext_string (errorString, Qnative);
+  return build_ext_string (errorString, Qerror_message_encoding);
 }
 #elif HAVE_LTDL
 /* Libtool's libltdl */
@@ -476,7 +477,7 @@
 Lisp_Object
 dll_error ()
 {
-  return build_ext_string (lt_dlerror (), Qnative);
+  return build_ext_string (lt_dlerror (), Qerror_message_encoding);
 }
 #else
 /* Catchall if we don't know about this system's method of dynamic loading */