about summary refs log tree commit diff
path: root/src/libcore/unicode
diff options
context:
space:
mode:
authorvarkor <github@varkor.com>2018-05-16 23:08:19 +0100
committervarkor <github@varkor.com>2018-05-21 18:57:54 +0100
commitd3c257b0aed1f6c0d541659539f27aca5c5bc25a (patch)
tree8c5f56c140058a37957532271029254c80c66ff9 /src/libcore/unicode
parent68c4fb8f2f556aca74394e07cbfb457d216e75b9 (diff)
downloadrust-d3c257b0aed1f6c0d541659539f27aca5c5bc25a.tar.gz
rust-d3c257b0aed1f6c0d541659539f27aca5c5bc25a.zip
Use the correct output directory for downloading Unicode files
Diffstat (limited to 'src/libcore/unicode')
-rwxr-xr-xsrc/libcore/unicode/unicode.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libcore/unicode/unicode.py b/src/libcore/unicode/unicode.py
index 5b3c181ea9b..ce22c6f226a 100755
--- a/src/libcore/unicode/unicode.py
+++ b/src/libcore/unicode/unicode.py
@@ -66,8 +66,7 @@ surrogate_codepoints = (0xd800, 0xdfff)
 def fetch(f):
     path = fdir + os.path.basename(f)
     if not os.path.exists(path):
-        os.system("curl -O http://www.unicode.org/Public/UNIDATA/%s"
-                  % f)
+        os.system("curl -o {0}{1} http://www.unicode.org/Public/UNIDATA/{1}".format(fdir, f))
 
     if not os.path.exists(path):
         sys.stderr.write("cannot load %s" % f)