From 93b32226e662d9fd9b148651127c1bb4e99b376a Mon Sep 17 00:00:00 2001 From: xh Date: Tue, 15 Apr 2014 13:39:21 +0800 Subject: recursively create all parent directories if they do not exist on Windows --- src/vmime/platforms/windows/windowsFile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vmime/platforms/windows/windowsFile.cpp b/src/vmime/platforms/windows/windowsFile.cpp index 0ab90b16..5ecafa58 100644 --- a/src/vmime/platforms/windows/windowsFile.cpp +++ b/src/vmime/platforms/windows/windowsFile.cpp @@ -352,7 +352,7 @@ void windowsFile::createDirectoryImpl(const vmime::utility::file::path& fullPath { const vmime::string nativePath = windowsFileSystemFactory::pathToStringImpl(path); - windowsFile tmp(fullPath); + windowsFile tmp(path); if (tmp.isDirectory()) return; -- cgit v1.2.3 From 61beb431d146f3c6b6738541812f4cb916a24002 Mon Sep 17 00:00:00 2001 From: di3online Date: Fri, 18 Apr 2014 14:18:24 +0800 Subject: =?UTF-8?q?add=20charset=20=E2=80=98GBK=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GB18030 contains GBK, GBK contains gb2312. --- src/vmime/platforms/windows/windowsCodepages.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vmime/platforms/windows/windowsCodepages.hpp b/src/vmime/platforms/windows/windowsCodepages.hpp index dfd6afdd..e66b2303 100644 --- a/src/vmime/platforms/windows/windowsCodepages.hpp +++ b/src/vmime/platforms/windows/windowsCodepages.hpp @@ -57,6 +57,7 @@ public: if (stricmp(s8_Name, "EUC-JP") == 0) return 20932; if (stricmp(s8_Name, "euc-kr") == 0) return 51949; if (stricmp(s8_Name, "GB18030") == 0) return 54936; + if (stricmp(s8_Name, "GBK") == 0) return 54936; if (stricmp(s8_Name, "gb2312") == 0) return 936; if (stricmp(s8_Name, "hz-gb-2312") == 0) return 52936; if (stricmp(s8_Name, "IBM00858") == 0) return 858; -- cgit v1.2.3