Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 886707 Details for
Bug 918510
media-gfx/superslicer-2.5.59.8: version bump (fixes: src/slic3r/GUI/ScriptExecutor.cpp:13:10: fatal error: boost/filesystem/string_file.hpp: No such file or directory)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
superslicer-2.5.59.8-boost-replace-load-string-file.patch
superslicer-2.5.59.8-boost-replace-load-string-file.patch (text/plain), 1.72 KB, created by
Robert G. Siebeck
on 2024-03-04 16:47:51 UTC
(
hide
)
Description:
superslicer-2.5.59.8-boost-replace-load-string-file.patch
Filename:
MIME Type:
Creator:
Robert G. Siebeck
Created:
2024-03-04 16:47:51 UTC
Size:
1.72 KB
patch
obsolete
>diff --git a/src/slic3r/GUI/ScriptExecutor.cpp b/src/slic3r/GUI/ScriptExecutor.cpp >index f32e44204..272af5ec3 100644 >--- a/src/slic3r/GUI/ScriptExecutor.cpp >+++ b/src/slic3r/GUI/ScriptExecutor.cpp >@@ -10,9 +10,9 @@ > #include <boost/algorithm/string/erase.hpp> > #include <boost/algorithm/string/split.hpp> > #include <boost/filesystem.hpp> >-#include <boost/filesystem/string_file.hpp> > > #include <string> >+#include <fstream> > > #include <angelscript/source/as_config.h> > #include <angelscript/add_on/autowrapper/aswrappedcall.h> >@@ -616,6 +619,17 @@ bool as_is_enabled(std::string &key) > return f->is_enabled(); > } > >+inline >+void load_string_file(const boost::filesystem::path& p, std::string& str) >+{ >+ std::ifstream file; >+ file.exceptions(std::ifstream::failbit | std::ifstream::badbit); >+ file.open(p, std::ios_base::binary); >+ std::size_t sz = static_cast<std::size_t>(boost::filesystem::file_size(p)); >+ str.resize(sz, '\0'); >+ file.read(&str[0], sz); >+} >+ > //function to reset a field > void as_back_initial_value(std::string& key) { > current_script->add_to_reset(key); >@@ -745,7 +759,7 @@ void ScriptContainer::init(const std::string& tab_key, Tab* tab) > //res = builder.AddSectionFromFile(ui_script_file.string().c_str()); //seems to be problematic on cyrillic locale > { > std::string all_file; >- boost::filesystem::load_string_file(ui_script_file, all_file); >+ load_string_file(ui_script_file, all_file); > res = builder.AddSectionFromMemory(ui_script_file.string().c_str(), all_file.c_str(), (unsigned int)(all_file.length()), 0); > } > if (res < 0) throw CompileErrorException("Error, can't build the script for tab " + tab_key);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 918510
:
881557
|
881558
|
885342
|
885343
|
885344
|
885345
|
885346
| 886707