mirror of https://github.com/aria2/aria2
2010-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
For MINGW32 build, percent-encode non-ASCII characters in filename. * src/util.ccpull/1/head
parent
721f53ea97
commit
ba026adb5e
|
@ -1,3 +1,9 @@
|
|||
2010-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
For MINGW32 build, percent-encode non-ASCII characters in
|
||||
filename.
|
||||
* src/util.cc
|
||||
|
||||
2010-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Include last '/' to directory name to create. This will avoid to
|
||||
|
|
|
@ -1393,7 +1393,9 @@ std::string escapePath(const std::string& s)
|
|||
|| std::find(vbegin(WIN_INVALID_PATH_CHARS),
|
||||
vend(WIN_INVALID_PATH_CHARS),
|
||||
c) != vend(WIN_INVALID_PATH_CHARS)
|
||||
|
||||
// Since Windows does not understand UTF-8 correctly, we
|
||||
// percent-encode character other than ASCII.
|
||||
|| c > 0x7fu
|
||||
#endif // __MINGW32__
|
||||
){
|
||||
d += fmt("%%%02X", c);
|
||||
|
|
Loading…
Reference in New Issue