linuxdcpp-team team mailing list archive
-
linuxdcpp-team team
-
Mailing list archive
-
Message #06029
[Branch ~dcplusplus-team/dcplusplus/trunk] Rev 3046: Fix GeoIP decompression with wide character paths
------------------------------------------------------------
revno: 3046
committer: poy <poy@xxxxxxxxxx>
branch nick: trunk
timestamp: Thu 2012-09-13 19:19:06 +0200
message:
Fix GeoIP decompression with wide character paths
modified:
changelog.txt
dcpp/ZUtils.cpp
--
lp:dcplusplus
https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk
Your team Dcplusplus-team is subscribed to branch lp:dcplusplus.
To unsubscribe from this branch go to https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk/+edit-subscription
=== modified file 'changelog.txt'
--- changelog.txt 2012-09-12 18:50:31 +0000
+++ changelog.txt 2012-09-13 17:19:06 +0000
@@ -39,6 +39,7 @@
* Fix NAT-PMP renewal (poy)
* [L#226968] Remember list sorting & splitter positions (poy)
* [L#1041553] Fix help tooltips in Windows 8 (poy)
+* Fix GeoIP decompression with wide character paths (poy)
-- 0.799 2012-05-05 --
* Add icons (iceman50)
=== modified file 'dcpp/ZUtils.cpp'
--- dcpp/ZUtils.cpp 2012-01-13 20:55:20 +0000
+++ dcpp/ZUtils.cpp 2012-09-13 17:19:06 +0000
@@ -132,7 +132,7 @@
}
void GZ::decompress(const string& source, const string& target) {
- auto gz = gzopen(source.c_str(), "rb");
+ auto gz = gzopen_w(Text::toT(source).c_str(), "rb");
if(!gz) {
throw Exception(_("Error during decompression"));
}