summaryrefslogtreecommitdiffstats
path: root/src/extension/extension.h
diff options
context:
space:
mode:
authorPatrick Storz <eduard.braun2@gmx.de>2019-09-26 21:03:28 +0000
committerPatrick Storz <eduard.braun2@gmx.de>2019-09-26 21:03:28 +0000
commit01ec4ffba1a2013dee932d0790dd76f9ab393ef7 (patch)
treee50fb6c1469d6ebc66369cb949e537fc9ecb3672 /src/extension/extension.h
parentRemove pixman_log_error from console (diff)
downloadinkscape-01ec4ffba1a2013dee932d0790dd76f9ab393ef7.tar.gz
inkscape-01ec4ffba1a2013dee932d0790dd76f9ab393ef7.zip
Extensions: Fix filename encoding issues in error logging
(std::ostream is not properly portable unfortunately)
Diffstat (limited to 'src/extension/extension.h')
-rw-r--r--src/extension/extension.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/extension/extension.h b/src/extension/extension.h
index d28ba2efc..a2f6c19db 100644
--- a/src/extension/extension.h
+++ b/src/extension/extension.h
@@ -113,7 +113,7 @@ private:
gchar *_name = nullptr; /**< A user friendly name for the Extension */
state_t _state = STATE_UNLOADED; /**< Which state the Extension is currently in */
std::vector<Dependency *> _deps; /**< Dependencies for this extension */
- static std::ofstream error_file; /**< This is the place where errors get reported */
+ static FILE *error_file; /**< This is the place where errors get reported */
bool _gui;
protected:
@@ -214,6 +214,7 @@ public:
public:
static void error_file_open ();
static void error_file_close ();
+ static void error_file_write (Glib::ustring text);
public:
Gtk::Widget *autogui (SPDocument *doc, Inkscape::XML::Node *node, sigc::signal<void> *changeSignal = nullptr);