prepare zipios++ for unicode support
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user