git-svn-id: https://s3tools.svn.sourceforge.net/svnroot/s3tools/s3cmd/trunk@445 830e0280-6d2a-0410-9c65-932aecc39d9d
Michal Ludvig authored on 2010/10/25 17:03:27... | ... |
@@ -1600,7 +1600,7 @@ def main(): |
1600 | 1600 |
if os.getenv("HOME"): |
1601 | 1601 |
config_file = os.path.join(os.getenv("HOME"), ".s3cfg") |
1602 | 1602 |
elif os.name == "nt" and os.getenv("USERPROFILE"): |
1603 |
- config_file = os.path.join(os.getenv("USERPROFILE"), "Application Data", "s3cmd.ini") |
|
1603 |
+ config_file = os.path.join(os.getenv("USERPROFILE").decode('mbcs'), "Application Data", "s3cmd.ini") |
|
1604 | 1604 |
|
1605 | 1605 |
preferred_encoding = locale.getpreferredencoding() or "UTF-8" |
1606 | 1606 |
|