synfigincludedir = @synfigincludedir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
-EXTRA_DIST = about_dialog.sif backdrop.sif business_card.sif candy.sif cells.sif eye.sif eyes.sif gamma.sif gradient.sif headmo.sif installer-logo.sif japan.sif logo.sif logo.tiff macwolfen.sif Makefile.am mandelbrot.sif newjulia.sif newjulia2.sif noise.sif pirates.sif preambletaffy.sif prologue_kid.sif sparkle.sif splat.sif star.sif wallpaper.sif warpcube.sif warptext.sif z_depth_test.sif
+EXTRA_DIST = about_dialog.sif backdrop.sif business_card.sif candy.sif cells.sif eye.sif eyes.sif gamma.sif gradient.sif headmo.sif installer-logo.sif japan.sif logo.sif macwolfen.sif Makefile.am mandelbrot.sif newjulia.sif newjulia2.sif noise.sif pirates.sif preambletaffy.sif prologue_kid.sif sparkle.sif splat.sif star.sif wallpaper.sif warpcube.sif warptext.sif z_depth_test.sif
all: all-am
.SUFFIXES:
module_LTLIBRARIES = libmod_openexr.la
libmod_openexr_la_SOURCES = main.cpp mptr_openexr.cpp mptr_openexr.h trgt_openexr.cpp trgt_openexr.h
libmod_openexr_la_LDFLAGS = -module @PNG_LIBS@ -no-undefined
-libmod_openexr_la_LIBADD = -L../../synfig -lsynfig @SYNFIG_LIBS@
-libmod_openexr_la_CXXFLAGS = @SYNFIG_CFLAGS@
+libmod_openexr_la_LIBADD = -L../../synfig -lsynfig @SYNFIG_LIBS@ @OPENEXR_LIBS@
+libmod_openexr_la_CXXFLAGS = @SYNFIG_CFLAGS@ @OPENEXR_CFLAGS@
else
endif
#include <ETL/stringf>
#include "string.h"
#include "version.h"
+#include <locale.h>
/* === M A C R O S ========================================================= */
namespace synfig {
+class ChangeLocale {
+ const char *previous;
+ int category;
+public:
+ ChangeLocale(int category, const char *locale):
+ previous(setlocale(category,NULL)),category(category)
+ {
+ setlocale(category,locale);
+ }
+ ~ChangeLocale() {
+ setlocale(category,previous);
+ }
+};
+
/*! \class ProgressCallback
** \todo writeme
*/
CHECK_EXPIRE_TIME();
try
{
+ ChangeLocale change_locale(LC_NUMERIC, "C");
String file(unix_to_local_path(file_));
String as(unix_to_local_path(as_));
try
{
+ ChangeLocale change_locale(LC_NUMERIC, "C");
filename=_("<INTERNAL>");
total_warnings_=0;
xmlpp::DomParser parser;
bool
synfig::save_canvas(const String &filename, Canvas::ConstHandle canvas)
{
+ ChangeLocale change_locale(LC_NUMERIC, "C");
+
synfig::String tmp_filename(filename+".TMP");
try
String
synfig::canvas_to_string(Canvas::ConstHandle canvas)
{
+ ChangeLocale change_locale(LC_NUMERIC, "C");
assert(canvas);
xmlpp::Document document;