Fixed compile error with mingw

pull/4/head
Tatsuhiro Tsujikawa 2011-12-01 23:21:56 +09:00
parent b89bc8a6cb
commit 82e5318e35
1 changed files with 4 additions and 4 deletions

View File

@ -182,10 +182,10 @@ void option_processing(Option& op, std::vector<std::string>& uris,
// finaly let's parse and store command-iine options.
oparser->parse(op, cmdstream);
#ifdef __MINGW32__
for(std::map<std::string, std::string>::iterator i = op.begin();
i != op.end(); ++i) {
if(!util::isUtf8((*i).second)) {
(*i).second = nativeToUtf8((*i).second);
for(size_t i = 1, len = option::countOption(); i < len; ++i) {
const Pref* pref = option::i2p(i);
if(op.defined(pref) && !util::isUtf8(op.get(pref))) {
op.put(pref, nativeToUtf8(op.get(pref)));
}
}
#endif // __MINGW32__