prepare zipios++ for unicode support

This commit is contained in:
wmayer
2017-11-05 19:37:42 +01:00
parent 17663ebac0
commit 3daa4fe690
2 changed files with 6 additions and 2 deletions

View File

@@ -9,7 +9,9 @@
#include "zipios_defs.h"
#include "backbuffer.h"
#if defined(_WIN32)
#include <Base/FileInfo.h>
#endif
namespace zipios {
@@ -34,7 +36,7 @@ ZipFile::ZipFile( const string &name , int s_off, int e_off
_filename = name ;
#if _WIN32
#if defined(_WIN32)
std::wstring wsname = Base::FileInfo(name).toStdWString();
ifstream _zipfile( wsname.c_str(), ios::in | ios::binary ) ;
#else

View File

@@ -5,7 +5,9 @@
#include "zipinputstreambuf.h"
#include "zipinputstream.h"
#if defined(_WIN32)
#include <Base/FileInfo.h>
#endif
using std::istream;
@@ -25,7 +27,7 @@ ZipInputStream::ZipInputStream( const std::string &filename, std::streampos pos
: std::istream( 0 ),
ifs( 0 )
{
#if _WIN32
#if defined(_WIN32)
std::wstring wsname = Base::FileInfo(filename).toStdWString();
ifs = new std::ifstream( wsname.c_str(), std::ios::in |std:: ios::binary ) ;
#else