aboutsummaryrefslogtreecommitdiff
path: root/multimedia/bombono/files/patch-src-mlib-filesystem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/bombono/files/patch-src-mlib-filesystem.cpp')
-rw-r--r--multimedia/bombono/files/patch-src-mlib-filesystem.cpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/multimedia/bombono/files/patch-src-mlib-filesystem.cpp b/multimedia/bombono/files/patch-src-mlib-filesystem.cpp
new file mode 100644
index 000000000000..587039c65cca
--- /dev/null
+++ b/multimedia/bombono/files/patch-src-mlib-filesystem.cpp
@@ -0,0 +1,28 @@
+--- src/mlib/filesystem.cpp.orig 2012-06-05 18:44:31.000000000 +0200
++++ src/mlib/filesystem.cpp 2012-06-05 18:46:42.000000000 +0200
+@@ -47,7 +47,7 @@
+
+ std::string get_basename(const fs::path& pth)
+ {
+- std::string name_s = pth.leaf();
++ std::string name_s = pth.filename().string();
+ const char* name = name_s.c_str();
+
+ //if( const char* dot = strstr(name, ".") )
+@@ -58,7 +58,7 @@
+
+ std::string get_extension(const fs::path& pth)
+ {
+- std::string name_s = pth.leaf();
++ std::string name_s = pth.filename().string();
+
+ if( const char* dot = FindExtDot(name_s.c_str()) )
+ return std::string(dot+1);
+@@ -72,7 +72,6 @@
+ tune_boost_filesystem()
+ {
+ // чтоб любые символы в именах файлов позволялись, для utf8
+- fs::path::default_name_check(fs::native);
+ }
+ } tune_boost_filesystem_obj;
+