Update of /cvsroot/ufraw/ufraw
In directory vz-cvs-3.sog:/tmp/cvs-serv7170

Modified Files:
        ufraw_writer.c 
Log Message:
Allow UFRaw to create FITS files with special characters in path or filename.

Index: ufraw_writer.c
===================================================================
RCS file: /cvsroot/ufraw/ufraw/ufraw_writer.c,v
retrieving revision 1.75
retrieving revision 1.76
diff -u -d -r1.75 -r1.76
--- ufraw_writer.c      20 Feb 2011 06:15:20 -0000      1.75
+++ ufraw_writer.c      14 Aug 2011 07:00:22 -0000      1.76
@@ -296,7 +296,13 @@
             int status = 0;
             char *filename =
                 uf_win32_locale_filename_from_utf8(uf->conf->outputFilename);
-            fits_create_file(&fitsFile, filename, &status);
+            if (strcmp(filename, "-") != 0)
+                // Use fits_create_diskfile() to allow more characters in
+                // filenames.
+                fits_create_diskfile(&fitsFile, filename, &status);
+            else
+                // fits_create_file() can write to stdout.
+                fits_create_file(&fitsFile, filename, &status);
             uf_win32_locale_filename_free(filename);
             if (status) {
                 ufraw_set_error(uf, _("Error creating file '%s'."),


------------------------------------------------------------------------------
FREE DOWNLOAD - uberSVN with Social Coding for Subversion.
Subversion made easy with a complete admin console. Easy 
to use, easy to manage, easy to install, easy to extend. 
Get a Free download of the new open ALM Subversion platform now.
http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
ufraw-cvs mailing list
ufraw-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ufraw-cvs

Reply via email to