Differential D33923 Diff 101572 www/onlyoffice-documentserver/files/patch-core_DesktopEditor_common_Path.cpp
Changeset View
Changeset View
Standalone View
Standalone View
www/onlyoffice-documentserver/files/patch-core_DesktopEditor_common_Path.cpp
- This file was added.
--- core/DesktopEditor/common/Path.cpp.orig 2021-09-30 12:13:32 UTC | |||||
+++ core/DesktopEditor/common/Path.cpp | |||||
@@ -34,7 +34,7 @@ | |||||
#if defined(_WIN32) || defined (_WIN64) | |||||
#include <tchar.h> | |||||
-#elif __linux__ || MAC | |||||
+#elif __linux__ || __FreeBSD__ || MAC | |||||
#include <libgen.h> | |||||
#endif | |||||
@@ -53,7 +53,7 @@ namespace NSSystemPath | |||||
sRes.append(tFolder); | |||||
if(sRes.length() > 0) | |||||
sRes.erase(sRes.length()-1); | |||||
-#elif __linux__ || MAC | |||||
+#elif __linux__ || __FreeBSD__ || MAC | |||||
BYTE* pUtf8 = NULL; | |||||
LONG lLen = 0; | |||||
NSFile::CUtf8Converter::GetUtf8StringFromUnicode(strFileName.c_str(), strFileName.length(), pUtf8, lLen, false); | |||||
@@ -73,7 +73,7 @@ namespace NSSystemPath | |||||
sRes.append(tFilename); | |||||
sRes.append(tExt); | |||||
return sRes; | |||||
-#elif __linux__ || MAC | |||||
+#elif __linux__ || __FreeBSD__ || MAC | |||||
BYTE* pUtf8 = NULL; | |||||
LONG lLen = 0; | |||||
NSFile::CUtf8Converter::GetUtf8StringFromUnicode(strFileName.c_str(), strFileName.length(), pUtf8, lLen, false); |