Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

* s3cmd: Read config file even if User Profile directory on

  Windows contains non-ascii symbols. Thx Slava Vishnyakov



git-svn-id: https://s3tools.svn.sourceforge.net/svnroot/s3tools/s3cmd/trunk@445 830e0280-6d2a-0410-9c65-932aecc39d9d
  • Loading branch information...
commit 07150f7c8d44e59b0d3899f8640082ef46397199 1 parent ba7d877
@mludvig mludvig authored
Showing with 3 additions and 1 deletion.
  1. +2 −0  ChangeLog
  2. +1 −1  s3cmd
View
2  ChangeLog
@@ -2,6 +2,8 @@
* s3cmd: Improved 'fixbucket' command. Thanks to Srinivasa
Moorthy.
+ * s3cmd: Read config file even if User Profile directory on
+ Windows contains non-ascii symbols. Thx Slava Vishnyakov
2010-10-25 Michal Ludvig <mludvig@logix.net.nz>
View
2  s3cmd
@@ -1600,7 +1600,7 @@ def main():
if os.getenv("HOME"):
config_file = os.path.join(os.getenv("HOME"), ".s3cfg")
elif os.name == "nt" and os.getenv("USERPROFILE"):
- config_file = os.path.join(os.getenv("USERPROFILE"), "Application Data", "s3cmd.ini")
+ config_file = os.path.join(os.getenv("USERPROFILE").decode('mbcs'), "Application Data", "s3cmd.ini")
preferred_encoding = locale.getpreferredencoding() or "UTF-8"
Please sign in to comment.
Something went wrong with that request. Please try again.