fix windows builds & remove cruft
There's no mkstemp() for windows -> use Glib::file_open_tmp() also ofstream should not be used (on windows it does not support UTF8 fn) strstream + Glib::file_set_contents ()
This commit is contained in:
parent
d60200c899
commit
d9c98a51c2
|
@ -520,16 +520,6 @@ KeyEditor::search_string_updated (const std::string& filter)
|
||||||
void
|
void
|
||||||
KeyEditor::print () const
|
KeyEditor::print () const
|
||||||
{
|
{
|
||||||
char templ[14];
|
// use Glib::file_open_tmp() if needed
|
||||||
|
|
||||||
snprintf (templ, sizeof (templ), "akprintXXXXXX");
|
|
||||||
|
|
||||||
int fd = mkstemp (templ);
|
|
||||||
ofstream f;
|
|
||||||
//f.open (fd);
|
|
||||||
|
|
||||||
Bindings::save_all_bindings_as_html (cerr);
|
Bindings::save_all_bindings_as_html (cerr);
|
||||||
|
|
||||||
f.close ();
|
|
||||||
close (fd);
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user